From 92a160896910b2a1e5a3fff2b03e04d99a5dc596 Mon Sep 17 00:00:00 2001 From: Arc Riley Date: Wed, 18 Mar 2009 00:13:39 +0000 Subject: [PATCH] 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. --- test/engine/reflection.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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): -- 2.47.3