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
|
@ -524,14 +524,10 @@ class PosixPathTest(unittest.TestCase):
|
|||
self.assertTrue(posixpath.sameopenfile(a.fileno(), b.fileno()))
|
||||
|
||||
|
||||
class PosixCommonTest(test_genericpath.CommonTest):
|
||||
class PosixCommonTest(test_genericpath.CommonTest, unittest.TestCase):
|
||||
pathmodule = posixpath
|
||||
attributes = ['relpath', 'samefile', 'sameopenfile', 'samestat']
|
||||
|
||||
|
||||
def test_main():
|
||||
support.run_unittest(PosixPathTest, PosixCommonTest)
|
||||
|
||||
|
||||
if __name__=="__main__":
|
||||
test_main()
|
||||
unittest.main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue