#16852: test_genericpath, test_posixpath, test_ntpath, and test_macpath now work with unittest test discovery. Patch by Zachary Ware.

This commit is contained in:
Ezio Melotti 2013-01-10 03:12:50 +02:00
parent 0c270a8bb7
commit d0dfe9ad46
5 changed files with 15 additions and 27 deletions

View file

@ -115,13 +115,9 @@ class MacPathTestCase(unittest.TestCase):
self.assertEqual(normpath(b"a:b:"), b"a:b")
class MacCommonTest(test_genericpath.CommonTest):
class MacCommonTest(test_genericpath.CommonTest, unittest.TestCase):
pathmodule = macpath
def test_main():
support.run_unittest(MacPathTestCase, MacCommonTest)
if __name__ == "__main__":
test_main()
unittest.main()