From 059512f264f1fb41f4201840dc0706bb526b80c4 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Tue, 15 Mar 2011 21:36:34 -0400 Subject: [PATCH] - qualify the use of locals() based on python version in use, don't run for pypy, jython, should fix [ticket:1073] --- test/orm/test_extendedattr.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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: -- 2.47.2