summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego GuimarĂ£es <diegobr.sistemas@gmail.com>2014-12-05 12:13:22 -0200
committerTim Graham <timograham@gmail.com>2014-12-06 13:00:25 -0500
commit106dde91e4dc30766db00d4ea21b4f954f49e83e (patch)
tree5f43a43144268515f7089ad4dee8d69d0df75cbd
parente32a8a99d99c3d6c3015e220f6719f6ddc48b4f1 (diff)
Refs #23947 -- Fixed introspection test that had a side effect.
-rw-r--r--tests/introspection/tests.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/tests/introspection/tests.py b/tests/introspection/tests.py
index bd5024a556..97081717ba 100644
--- a/tests/introspection/tests.py
+++ b/tests/introspection/tests.py
@@ -28,13 +28,9 @@ class IntrospectionTests(TransactionTestCase):
"django_table_names() returned a non-Django table")
def test_django_table_names_retval_type(self):
- # Ticket #15216
- with connection.cursor() as cursor:
- cursor.execute('CREATE TABLE django_ixn_test_table (id INTEGER);')
-
+ #15216 - Table name is a list
tl = connection.introspection.django_table_names(only_existing=True)
self.assertIs(type(tl), list)
-
tl = connection.introspection.django_table_names(only_existing=False)
self.assertIs(type(tl), list)