]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix unittest discovery tests for Windows. Issue 6199
authorMichael Foord <fuzzyman@voidspace.org.uk>
Fri, 5 Jun 2009 14:14:34 +0000 (14:14 +0000)
committerMichael Foord <fuzzyman@voidspace.org.uk>
Fri, 5 Jun 2009 14:14:34 +0000 (14:14 +0000)
Lib/test/test_unittest.py

index ecf31628e84b28d7d61db59d6bc44bdf263b5a77..4d66dc67261b9f3e5149c841b5f91e3d76624c0d 100644 (file)
@@ -3537,7 +3537,9 @@ class TestDiscovery(TestCase):
 
         # We should have loaded tests from the test_directory package by calling load_tests
         # and directly from the test_directory2 package
-        self.assertEqual(suite, ['load_tests', '/foo/test_directory2 module tests'])
+        self.assertEqual(suite,
+                         ['load_tests',
+                          os.path.join('/foo', 'test_directory2') + ' module tests'])
         self.assertEqual(Module.paths, [os.path.join('/foo', 'test_directory'),
                                         os.path.join('/foo', 'test_directory2')])