diff options
author | Michael Foord <fuzzyman@voidspace.org.uk> | 2009-06-05 14:14:34 +0000 |
---|---|---|
committer | Michael Foord <fuzzyman@voidspace.org.uk> | 2009-06-05 14:14:34 +0000 |
commit | d53d085ada3f33aeb0d45a69c323b8930583c7b4 (patch) | |
tree | ce381905463b32de5d78e3f5a1f6c26cf09d2cda /Lib/test/test_unittest.py | |
parent | 3b5d5fb12348c988c8e370c8d485368b9c00b4c5 (diff) | |
download | cpython-git-d53d085ada3f33aeb0d45a69c323b8930583c7b4.tar.gz |
Fix unittest discovery tests for Windows. Issue 6199
Diffstat (limited to 'Lib/test/test_unittest.py')
-rw-r--r-- | Lib/test/test_unittest.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_unittest.py b/Lib/test/test_unittest.py index ecf31628e8..4d66dc6726 100644 --- a/Lib/test/test_unittest.py +++ b/Lib/test/test_unittest.py @@ -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')]) |