diff --git a/tests/backends/oracle/tests.py b/tests/backends/oracle/tests.py index 333d224b3f6..baf2b083ff1 100644 --- a/tests/backends/oracle/tests.py +++ b/tests/backends/oracle/tests.py @@ -24,9 +24,8 @@ class Tests(unittest.TestCase): def test_cursor_var(self): """Cursor variables can be passed as query parameters.""" - from django.db.backends.oracle.base import Database with connection.cursor() as cursor: - var = cursor.var(Database.STRING) + var = cursor.var(str) cursor.execute("BEGIN %s := 'X'; END; ", [var]) self.assertEqual(var.getvalue(), 'X')