Skip to content

Commit

Permalink
Fixed #25110 -- Fixed a test_runner test isolation regression.
Browse files Browse the repository at this point in the history
Thanks claudep for the patch.
  • Loading branch information
JMGordon authored and timgraham committed Jul 27, 2015
1 parent 7c642ca commit 199a02d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions tests/test_runner/test_discover_runner.py
Expand Up @@ -121,9 +121,11 @@ def test_duplicates_ignored(self):
"""
Tests shouldn't be discovered twice when discovering on overlapping paths.
"""
single = DiscoverRunner().build_suite(["gis_tests"]).countTestCases()
dups = DiscoverRunner().build_suite(
["gis_tests", "gis_tests.geo3d"]).countTestCases()
base_app = 'gis_tests'
sub_app = 'gis_tests.geo3d'
with self.modify_settings(INSTALLED_APPS={'append': sub_app}):
single = DiscoverRunner().build_suite([base_app]).countTestCases()
dups = DiscoverRunner().build_suite([base_app, sub_app]).countTestCases()
self.assertEqual(single, dups)

def test_reverse(self):
Expand Down

0 comments on commit 199a02d

Please sign in to comment.