Changeset 1520
- Timestamp:
- 12/01/05 00:39:39 (3 years ago)
- Files:
-
- django/trunk/tests/runtests.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/tests/runtests.py
r805 r1520 101 101 try: 102 102 cursor.execute("CREATE DATABASE %s" % TEST_DATABASE_NAME) 103 except: 104 confirm = raw_input("The test database, %s, already exists. Type 'yes' to delete it, or 'no' to cancel: " % TEST_DATABASE_NAME) 103 except Exception, e: 104 sys.stderr.write("Got an error creating the test database: %s\n" % e) 105 confirm = raw_input("It appears the test database, %s, already exists. Type 'yes' to delete it, or 'no' to cancel: " % TEST_DATABASE_NAME) 105 106 if confirm == 'yes': 106 107 cursor.execute("DROP DATABASE %s" % TEST_DATABASE_NAME)
