Refs #27420 -- Removed exception hiding in Oracle test user creation during --keepdb.

If the test user creation fails here, _create_test_db() would return without
switching to the test user which caused the tests to run using the main
connection instead of the test user.
This commit is contained in:
Mariusz Felisiak 2016-11-08 22:53:52 +01:00 committed by Tim Graham
parent c4b04e1598
commit dacef9137f
1 changed files with 0 additions and 3 deletions

View File

@ -77,9 +77,6 @@ class DatabaseCreation(BaseDatabaseCreation):
try: try:
self._create_test_user(cursor, parameters, verbosity, keepdb) self._create_test_user(cursor, parameters, verbosity, keepdb)
except Exception as e: except Exception as e:
# If we want to keep the db, then we want to also keep the user.
if keepdb:
return
sys.stderr.write("Got an error creating the test user: %s\n" % e) sys.stderr.write("Got an error creating the test user: %s\n" % e)
if not autoclobber: if not autoclobber:
confirm = input( confirm = input(