Commits

jason kirtland  committed 15905f2

- Don't insist on locals() mutability [ticket:1073]

  • Participants
  • Parent commits abace63

Comments (0)

Files changed (1)

File test/orm/extendedattr.py

         return MyTypesManager(cls)
 
     __sa_instrumentation_manager__ = staticmethod(__sa_instrumentation_manager__)
-    
+
     # This proves SA can handle a class with non-string dict keys
-    locals()[42] = 99   # Don't remove this line!
+    try:
+        locals()[42] = 99   # Don't remove this line!
+    except:
+        pass
 
     def __init__(self, **kwargs):
         for k in kwargs: