From d53d085ada3f33aeb0d45a69c323b8930583c7b4 Mon Sep 17 00:00:00 2001 From: Michael Foord Date: Fri, 5 Jun 2009 14:14:34 +0000 Subject: Fix unittest discovery tests for Windows. Issue 6199 --- Lib/test/test_unittest.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_unittest.py b/Lib/test/test_unittest.py index ecf3162..4d66dc6 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')]) -- cgit v0.12