Changeset 26
- Timestamp:
- 03/10/07 18:36:22
- Files:
-
- trunk/geniusql/test/test_sqlite.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/geniusql/test/test_sqlite.py
r25 r26 15 15 import _sqlite 16 16 except ImportError: 17 def run( ):17 def run(memonly=False): 18 18 import warnings 19 19 warnings.warn("The _sqlite module could not be imported. " … … 24 24 opts = {} 25 25 26 def run( ):26 def run(memonly=False): 27 27 import zoo_fixture 28 # Isolate schema changes from one test to the next.29 reload(zoo_fixture)30 zoo_fixture.run(DB_class, dbpath, opts)31 28 32 print 33 print "Testing SQLite with 'Perfect Dates'" 34 opts['adaptertosql.perfect_dates'] = True 35 opts['typeadapter.perfect_dates'] = True 36 reload(zoo_fixture) 37 zoo_fixture.run(DB_class, dbpath, opts) 38 opts['adaptertosql.perfect_dates'] = False 39 opts['typeadapter.perfect_dates'] = False 29 if not memonly: 30 # Isolate schema changes from one test to the next. 31 reload(zoo_fixture) 32 zoo_fixture.run(DB_class, dbpath, opts) 33 34 print 35 print "Testing SQLite with 'Perfect Dates'" 36 opts['adaptertosql.perfect_dates'] = True 37 opts['typeadapter.perfect_dates'] = True 38 reload(zoo_fixture) 39 zoo_fixture.run(DB_class, dbpath, opts) 40 opts['adaptertosql.perfect_dates'] = False 41 opts['typeadapter.perfect_dates'] = False 40 42 41 43 print … … 45 47 46 48 if __name__ == "__main__": 47 run() 49 import sys 50 if "--memory" in sys.argv: 51 run(memonly=True) 52 else: 53 run()
