diff options
| author | Simon Charette <charette.s@gmail.com> | 2015-11-13 15:54:05 -0500 |
|---|---|---|
| committer | Simon Charette <charette.s@gmail.com> | 2015-11-14 11:33:28 -0500 |
| commit | 1c5f4e86bc9c7bae5d5f3830d9cfbb0043297261 (patch) | |
| tree | fe79a6afb78716fad02cd0659f336e459b1576b6 /tests/backends | |
| parent | d95b22bd56764c71047ec16f628c00c0fd997cfd (diff) | |
Fixed #25745 -- Promoted RuntimeWarnings to errors in the test suite.
Diffstat (limited to 'tests/backends')
| -rw-r--r-- | tests/backends/tests.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/backends/tests.py b/tests/backends/tests.py index 6237e860fb..693bb77180 100644 --- a/tests/backends/tests.py +++ b/tests/backends/tests.py @@ -203,6 +203,7 @@ class PostgreSQLTests(TestCase): with warnings.catch_warnings(record=True) as w: with mock.patch('django.db.backends.base.base.BaseDatabaseWrapper.connect', side_effect=mocked_connect, autospec=True): + warnings.simplefilter('always', RuntimeWarning) nodb_conn = connection._nodb_connection self.assertIsNotNone(nodb_conn.settings_dict['NAME']) self.assertEqual(nodb_conn.settings_dict['NAME'], connection.settings_dict['NAME']) |
