mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
#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:
parent
0c270a8bb7
commit
d0dfe9ad46
5 changed files with 15 additions and 27 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue