diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-08 15:59:28 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2011-04-08 15:59:28 -0400 |
commit | a347c03907fb2583723a5b36a083170ee21d4c0a (patch) | |
tree | 6d9fca1d3704b26013f2fcba82a30b234881b27f /test/lib/engines.py | |
parent | df3bf65f12e134db9f13fa66010969dda96d2249 (diff) | |
download | sqlalchemy-a347c03907fb2583723a5b36a083170ee21d4c0a.tar.gz |
- no encoding with arrays
- rework the "builtin types" thing with the ReplayableSession to be py3k compatible
Diffstat (limited to 'test/lib/engines.py')
-rw-r--r-- | test/lib/engines.py | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/test/lib/engines.py b/test/lib/engines.py index 8e251b351..4794a5fab 100644 --- a/test/lib/engines.py +++ b/test/lib/engines.py @@ -203,19 +203,25 @@ class ReplayableSession(object): Callable = object() NoAttribute = object() + + # Py3K + #Natives = set([getattr(types, t) + # for t in dir(types) if not t.startswith('_')]). \ + # union([type(t) if not isinstance(t, type) + # else t for t in __builtins__.values()]).\ + # difference([getattr(types, t) + # for t in ('FunctionType', 'BuiltinFunctionType', + # 'MethodType', 'BuiltinMethodType', + # 'LambdaType', )]) + # Py2K Natives = set([getattr(types, t) for t in dir(types) if not t.startswith('_')]). \ difference([getattr(types, t) - # Py3K - #for t in ('FunctionType', 'BuiltinFunctionType', - # 'MethodType', 'BuiltinMethodType', - # 'LambdaType', )]) - - # Py2K - for t in ('FunctionType', 'BuiltinFunctionType', - 'MethodType', 'BuiltinMethodType', - 'LambdaType', 'UnboundMethodType',)]) - # end Py2K + for t in ('FunctionType', 'BuiltinFunctionType', + 'MethodType', 'BuiltinMethodType', + 'LambdaType', 'UnboundMethodType',)]) + # end Py2K + def __init__(self): self.buffer = deque() |