From: Mike Bayer Date: Wed, 16 Mar 2011 01:36:34 +0000 (-0400) Subject: - qualify the use of locals() based on python version in use, don't run for pypy... X-Git-Tag: rel_0_7b3~21 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=059512f264f1fb41f4201840dc0706bb526b80c4;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git - qualify the use of locals() based on python version in use, don't run for pypy, jython, should fix [ticket:1073] --- diff --git a/test/orm/test_extendedattr.py b/test/orm/test_extendedattr.py index 0cc6a957b7..2493f31fdd 100644 --- a/test/orm/test_extendedattr.py +++ b/test/orm/test_extendedattr.py @@ -64,10 +64,8 @@ class MyClass(object): __sa_instrumentation_manager__ = staticmethod(__sa_instrumentation_manager__) # This proves SA can handle a class with non-string dict keys - try: + if not util.pypy and not util.jython: locals()[42] = 99 # Don't remove this line! - except: - pass def __init__(self, **kwargs): for k in kwargs: