Commit 5ae9cb6b authored by Kevin Modzelewski's avatar Kevin Modzelewski

These sqlalchemy tests work now

parent 6131d3c2
......@@ -44,6 +44,11 @@ import sqlalchemy.testing
class Requirements(object):
def __getattr__(self, n):
def inner(f):
if n == "predictable_gc":
def f2(*args, **kw):
return
return f2
else:
return f
inner.not_ = lambda: inner
return inner
......@@ -56,11 +61,6 @@ test_files = glob.glob(TEST_DIR + "/test*.py") + glob.glob(TEST_DIR + "/*/test*.
# infrastructure to run):
MODULES_TO_TEST = ['test.engine.test_parseconnect', 'test.ext.test_compiler', 'test.dialect.test_pyodbc', 'test.dialect.test_sybase', 'test.dialect.test_mxodbc', 'test.sql.test_inspect', 'test.sql.test_operators', 'test.sql.test_ddlemit', 'test.sql.test_cte', 'test.base.test_dependency', 'test.base.test_except', 'test.base.test_inspect', 'test.base.test_events', 'test.orm.test_inspect', 'test.orm.test_descriptor']
# These are currently broken on Pyston:
MODULES_TO_TEST.remove("test.sql.test_operators")
MODULES_TO_TEST.remove("test.base.test_events")
MODULES_TO_TEST.remove("test.orm.test_descriptor")
passed = []
failed = []
......@@ -85,6 +85,9 @@ for fn in test_files:
for t in dir(n):
if not t.startswith("test_"):
continue
if nname == "SubclassGrowthTest" and t == "test_subclass":
# This test should be marked as requiring predictable_pc
continue
print "Running", t
n.setup()
getattr(n, t)()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment