summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_ntpath.py
diff options
context:
space:
mode:
authorEzio Melotti <ezio.melotti@gmail.com>2013-01-10 01:12:50 (GMT)
committerEzio Melotti <ezio.melotti@gmail.com>2013-01-10 01:12:50 (GMT)
commitd0dfe9ad463f5d3a76af23df8bfd9c9d1915b328 (patch)
tree7f52b577fe45e54e934305b459a943fd93a6607f /Lib/test/test_ntpath.py
parent0c270a8bb748f09b7de6f6ce21d405e0c83be329 (diff)
downloadcpython-d0dfe9ad463f5d3a76af23df8bfd9c9d1915b328.zip
cpython-d0dfe9ad463f5d3a76af23df8bfd9c9d1915b328.tar.gz
cpython-d0dfe9ad463f5d3a76af23df8bfd9c9d1915b328.tar.bz2
#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_ntpath.py')
-rw-r--r--Lib/test/test_ntpath.py6
1 files changed, 1 insertions, 5 deletions
diff --git a/Lib/test/test_ntpath.py b/Lib/test/test_ntpath.py
index 2c9dab9..f809876 100644
--- a/Lib/test/test_ntpath.py
+++ b/Lib/test/test_ntpath.py
@@ -257,14 +257,10 @@ class TestNtpath(unittest.TestCase):
ntpath.sameopenfile(-1, -1)
-class NtCommonTest(test_genericpath.CommonTest):
+class NtCommonTest(test_genericpath.CommonTest, unittest.TestCase):
pathmodule = ntpath
attributes = ['relpath', 'splitunc']
-def test_main():
- support.run_unittest(TestNtpath, NtCommonTest)
-
-
if __name__ == "__main__":
unittest.main()