From: Arc Riley Date: Wed, 18 Mar 2009 00:13:39 +0000 (+0000) Subject: Set the set in __builtins__ check to Py2-only, set is always available in Py3 X-Git-Tag: rel_0_6_6~255 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92a160896910b2a1e5a3fff2b03e04d99a5dc596;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Set the set in __builtins__ check to Py2-only, set is always available in Py3 I believe some other test may be overriding __builtins__ to be a dict instead of a module only on Py3, but this is the easiest fix. --- diff --git a/test/engine/reflection.py b/test/engine/reflection.py index 0141cc5c59..8e80a2898f 100644 --- a/test/engine/reflection.py +++ b/test/engine/reflection.py @@ -8,10 +8,11 @@ from testlib import TestBase, ComparesTables, testing, engines, sa as tsa create_inspector = Inspector.from_engine +# Py2K if 'set' not in dir(__builtins__): from sets import Set as set - +# end Py2K metadata, users = None, None class ReflectionTest(TestBase, ComparesTables):