Django

Code

Show
Ignore:
Timestamp:
11/23/05 21:41:49 (3 years ago)
Author:
adrian
Message:

new-admin: Changed runtests.py not to display full exception if test database can't be created

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/new-admin/tests/runtests.py

    r986 r1391  
    101101            try: 
    102102                cursor.execute("CREATE DATABASE %s" % TEST_DATABASE_NAME) 
    103             except Exception, e: 
    104                 self.output(0, "There was an error creating the test database:%s " % str(e)) 
     103            except: 
    105104                confirm = raw_input("The test database, %s, already exists. Type 'yes' to delete it, or 'no' to cancel: " % TEST_DATABASE_NAME) 
    106105                if confirm == 'yes':