summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-03-15 21:36:34 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-03-15 21:36:34 -0400
commit059512f264f1fb41f4201840dc0706bb526b80c4 (patch)
tree2126382d686610c1e9decb5cfbbf3bce1d1cf981
parent32e80d6cc5d783f8528105196e200a50864ab0a1 (diff)
downloadsqlalchemy-059512f264f1fb41f4201840dc0706bb526b80c4.tar.gz
- qualify the use of locals() based on python version in use, don't run for pypy, jython, should fix [ticket:1073]
-rw-r--r--test/orm/test_extendedattr.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/orm/test_extendedattr.py b/test/orm/test_extendedattr.py
index 0cc6a957b..2493f31fd 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: