Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Tweaked the skipping condition for the test introduced in r17128 so t…

…hat it works on non-PostgreSQL backends.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17129 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 78a2719def81befc494a8b91510391e6b6f101e2 1 parent 74b836a
Aymeric Augustin authored November 20, 2011

Showing 1 changed file with 3 additions and 4 deletions. Show diff stats Hide diff stats

  1. 7  tests/regressiontests/backends/tests.py
7  tests/regressiontests/backends/tests.py
@@ -235,10 +235,9 @@ class PostgresNewConnectionTest(TestCase):
235 235
     #17062: PostgreSQL shouldn't roll back SET TIME ZONE, even if the first
236 236
     transaction is rolled back.
237 237
     """
238  
-    @unittest.skipUnless(connection.vendor == 'postgresql',
239  
-                         "Test valid only for PostgreSQL")
240  
-    @unittest.skipUnless(connection.isolation_level > 0,
241  
-                         "Test valid only if not using autocommit")
  238
+    @unittest.skipUnless(
  239
+        connection.vendor == 'postgresql' and connection.isolation_level > 0,
  240
+        "This test applies only to PostgreSQL without autocommit")
242 241
     def test_connect_and_rollback(self):
243 242
         new_connections = ConnectionHandler(settings.DATABASES)
244 243
         new_connection = new_connections[DEFAULT_DB_ALIAS]

0 notes on commit 78a2719

Please sign in to comment.
Something went wrong with that request. Please try again.