Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

Corrected the tests for DjangoTestRunner so they pass under Postgres.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 15f42cc92a865dd0f3a39e73e9ffdd6262bde7dd 1 parent 79d6e40
@freakboy3742 freakboy3742 authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 tests/regressiontests/test_runner/
14 tests/regressiontests/test_runner/
@@ -4,25 +4,25 @@
import StringIO
import unittest
import django
-from django.test import TestCase, TransactionTestCase, simple
+from django.test import simple
+class DjangoTestRunnerTests(unittest.TestCase):
-class DjangoTestRunnerTests(TestCase):
def test_failfast(self):
- class MockTestOne(TransactionTestCase):
+ class MockTestOne(unittest.TestCase):
def runTest(self):
assert False
- class MockTestTwo(TransactionTestCase):
+ class MockTestTwo(unittest.TestCase):
def runTest(self):
assert False
suite = unittest.TestSuite([MockTestOne(), MockTestTwo()])
mock_stream = StringIO.StringIO()
dtr = simple.DjangoTestRunner(verbosity=0, failfast=False, stream=mock_stream)
result =
self.assertEqual(2, result.testsRun)
self.assertEqual(2, len(result.failures))
dtr = simple.DjangoTestRunner(verbosity=0, failfast=True, stream=mock_stream)
result =
self.assertEqual(1, result.testsRun)
Please sign in to comment.
Something went wrong with that request. Please try again.