diff options
Diffstat (limited to 'django')
| -rw-r--r-- | django/test/testcases.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py index 51b07ae50d..bf035bd531 100644 --- a/django/test/testcases.py +++ b/django/test/testcases.py @@ -280,6 +280,8 @@ class SimpleTestCase(unittest.TestCase): self.connection is None and self.alias not in cls.databases and self.alias != NO_DB_ALIAS + # Dynamically created connections are always allowed. + and self.alias in connections ): # Connection has not yet been established, but the alias is not allowed. message = cls._disallowed_database_msg % { |
