diff options
| author | Jon Dufresne <jon.dufresne@gmail.com> | 2020-02-03 19:07:00 -0800 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-02-06 15:29:38 +0100 |
| commit | f48f671223a20b161ca819cf7d6298e43b8ba5fe (patch) | |
| tree | bc24e2f0ae10a4ffd088141e2681b45173c08b53 /tests/postgres_tests | |
| parent | 2d55cb5c4a9c736d04290c9f99ebcbe9e196ac97 (diff) | |
Refs #31233 -- Changed DatabaseWrapper._nodb_connection to _nodb_cursor().
It is now a method instead of a property and returns a context manager
that yields a cursor on entry and closes the cursor and connection upon
exit.
Diffstat (limited to 'tests/postgres_tests')
| -rw-r--r-- | tests/postgres_tests/test_signals.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/postgres_tests/test_signals.py b/tests/postgres_tests/test_signals.py index 3c6502b5e7..f1569c361c 100644 --- a/tests/postgres_tests/test_signals.py +++ b/tests/postgres_tests/test_signals.py @@ -38,4 +38,5 @@ class OIDTests(PostgreSQLTestCase): def test_register_type_handlers_no_db(self): """Registering type handlers for the nodb connection does nothing.""" - register_type_handlers(connection._nodb_connection) + with connection._nodb_cursor() as cursor: + register_type_handlers(cursor.db) |
