diff options
| author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-03-15 21:36:34 -0400 |
|---|---|---|
| committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-03-15 21:36:34 -0400 |
| commit | 059512f264f1fb41f4201840dc0706bb526b80c4 (patch) | |
| tree | 2126382d686610c1e9decb5cfbbf3bce1d1cf981 | |
| parent | 32e80d6cc5d783f8528105196e200a50864ab0a1 (diff) | |
| download | sqlalchemy-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.py | 4 |
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: |
