diff options
author | Ezio Melotti <ezio.melotti@gmail.com> | 2013-01-10 03:12:50 +0200 |
---|---|---|
committer | Ezio Melotti <ezio.melotti@gmail.com> | 2013-01-10 03:12:50 +0200 |
commit | 56a70daab94056df38db8ac1d9a74fed82f5824d (patch) | |
tree | 14b93bef8d466a72aaee04d0971dde0f90673e4d /Lib/test/test_posixpath.py | |
parent | 0d2ed723a1ef1163a17f0565900ddc3b8fcd03a4 (diff) | |
download | cpython-56a70daab94056df38db8ac1d9a74fed82f5824d.tar.gz |
#16852: test_genericpath, test_posixpath, test_ntpath, and test_macpath now work with unittest test discovery. Patch by Zachary Ware.
Diffstat (limited to 'Lib/test/test_posixpath.py')
-rw-r--r-- | Lib/test/test_posixpath.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/test_posixpath.py b/Lib/test/test_posixpath.py index 7aca87d35c..a16a957e6a 100644 --- a/Lib/test/test_posixpath.py +++ b/Lib/test/test_posixpath.py @@ -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() |