summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_macpath.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_macpath.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_macpath.py')
-rw-r--r--Lib/test/test_macpath.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/Lib/test/test_macpath.py b/Lib/test/test_macpath.py
index d732e14..ae4e564 100644
--- a/Lib/test/test_macpath.py
+++ b/Lib/test/test_macpath.py
@@ -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()