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:
parent
c4b04e1598
commit
dacef9137f
|
@ -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(
|
||||||
|
|
Loading…
Reference in New Issue