diff options
author | Jason Kirtland <jek@discorporate.us> | 2008-01-12 22:03:42 +0000 |
---|---|---|
committer | Jason Kirtland <jek@discorporate.us> | 2008-01-12 22:03:42 +0000 |
commit | 17d3c8764e020379e54053bca0b0a2bc71d48aa0 (patch) | |
tree | 0b46f1ddc57292b8f5bfbc28ab1679230f63e426 /test/testlib/testing.py | |
parent | c194962019d1bc7322e20b82c33aa1bab3bc2a28 (diff) | |
download | sqlalchemy-17d3c8764e020379e54053bca0b0a2bc71d48aa0.tar.gz |
- testbase is gone, replaced by testenv
- Importing testenv has no side effects- explicit functions provide similar behavior to the old immediate behavior of testbase
- testing.db has the configured db
- Fixed up the perf/* scripts
Diffstat (limited to 'test/testlib/testing.py')
-rw-r--r-- | test/testlib/testing.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/testlib/testing.py b/test/testlib/testing.py index 1231dc126..1b5a55f04 100644 --- a/test/testlib/testing.py +++ b/test/testlib/testing.py @@ -2,7 +2,6 @@ # monkeypatches unittest.TestLoader.suiteClass at import time -import testbase import itertools, unittest, re, sys, os, operator, warnings from cStringIO import StringIO import testlib.config as config @@ -21,6 +20,9 @@ _ops = { '<': operator.lt, 'between': lambda val, pair: val >= pair[0] and val <= pair[1], } +# sugar ('testing.db'); set here by config() at runtime +db = None + def fails_on(*dbs): """Mark a test as expected to fail on one or more database implementations. |