From dacef9137f43fff88b527d1c02f6fe6a81e975aa Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 8 Nov 2016 22:53:52 +0100 Subject: [PATCH] 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. --- django/db/backends/oracle/creation.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/django/db/backends/oracle/creation.py b/django/db/backends/oracle/creation.py index aa5279fdce..654c9d01b4 100644 --- a/django/db/backends/oracle/creation.py +++ b/django/db/backends/oracle/creation.py @@ -77,9 +77,6 @@ class DatabaseCreation(BaseDatabaseCreation): try: self._create_test_user(cursor, parameters, verbosity, keepdb) 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) if not autoclobber: confirm = input(