Author: aaugustin Date: 2011-11-20 12:43:59 -0800 (Sun, 20 Nov 2011) New Revision: 17129
Modified: django/trunk/tests/regressiontests/backends/tests.py Log: Tweaked the skipping condition for the test introduced in r17128 so that it works on non-PostgreSQL backends. Modified: django/trunk/tests/regressiontests/backends/tests.py =================================================================== --- django/trunk/tests/regressiontests/backends/tests.py 2011-11-20 16:12:33 UTC (rev 17128) +++ django/trunk/tests/regressiontests/backends/tests.py 2011-11-20 20:43:59 UTC (rev 17129) @@ -235,10 +235,9 @@ #17062: PostgreSQL shouldn't roll back SET TIME ZONE, even if the first transaction is rolled back. """ - @unittest.skipUnless(connection.vendor == 'postgresql', - "Test valid only for PostgreSQL") - @unittest.skipUnless(connection.isolation_level > 0, - "Test valid only if not using autocommit") + @unittest.skipUnless( + connection.vendor == 'postgresql' and connection.isolation_level > 0, + "This test applies only to PostgreSQL without autocommit") def test_connect_and_rollback(self): new_connections = ConnectionHandler(settings.DATABASES) new_connection = new_connections[DEFAULT_DB_ALIAS] -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.