Commit d0c60163 authored by Nikolaus Schlemm's avatar Nikolaus Schlemm Committed by Tim Graham
Browse files

[1.7.x] cater for running tests from another directory than tests - applying...

[1.7.x] cater for running tests from another directory than tests - applying existing pattern to newly added test_testcase_ordering as well

Backport of d11e8362 from master
parent 0c3a23d2
Loading
Loading
Loading
Loading
+12 −11
Original line number Diff line number Diff line
@@ -104,6 +104,7 @@ class DiscoverRunnerTest(TestCase):
        self.assertEqual(count, 0)

    def test_testcase_ordering(self):
        with change_cwd(".."):
            suite = DiscoverRunner().build_suite(["test_discovery_sample/"])
            self.assertEqual(
                suite._tests[0].__class__.__name__,