Changeset 446
- Timestamp:
- 08/09/05 18:51:55 (3 years ago)
- Files:
-
- django/trunk/tests/runtests.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/runtests.py
r367 r446 112 112 runner = DjangoDoctestRunner(verbosity_level=verbosity_level, verbose=False) 113 113 self.output(1, "%s model: Running tests" % model_name) 114 runner.run(dtest, clear_globs=True, out=sys.stdout.write) 115 114 try: 115 runner.run(dtest, clear_globs=True, out=sys.stdout.write) 116 finally: 117 # Rollback, in case of database errors. Otherwise they'd have 118 # side effects on other tests. 119 db.rollback() 120 116 121 # Run the non-model tests in the other tests dir 117 122 self.output(1, "Running other tests") … … 138 143 log_error(module, "Exception running tests", ''.join(traceback.format_exception(*sys.exc_info())[1:])) 139 144 continue 140 145 141 146 # Unless we're using SQLite, remove the test database to clean up after 142 147 # ourselves. Connect to the previous database (not the test database)
