diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-08 12:24:53 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-03-08 12:24:53 (GMT) |
commit | c9c79784cf675819981e54b9c64a9ec114aff994 (patch) | |
tree | 00124eb960e0a9847c12708a9ba52c2a34fc069c /Lib/test/test_macpath.py | |
parent | 961683ac0f37de933ed15ccc60a9eee1a2fbcefc (diff) | |
download | cpython-c9c79784cf675819981e54b9c64a9ec114aff994.zip cpython-c9c79784cf675819981e54b9c64a9ec114aff994.tar.gz cpython-c9c79784cf675819981e54b9c64a9ec114aff994.tar.bz2 |
Merged revisions 78734-78735 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r78734 | florent.xicluna | 2010-03-06 19:07:18 +0100 (sam, 06 mar 2010) | 2 lines
Create test_genericpath.CommonTest and reuse it to test other path modules.
........
r78735 | florent.xicluna | 2010-03-06 19:52:52 +0100 (sam, 06 mar 2010) | 2 lines
Minor tweaking of previous r78734, and add a NEWS entry.
........
Diffstat (limited to 'Lib/test/test_macpath.py')
-rw-r--r-- | Lib/test/test_macpath.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/Lib/test/test_macpath.py b/Lib/test/test_macpath.py index 2c73758..b36ba00 100644 --- a/Lib/test/test_macpath.py +++ b/Lib/test/test_macpath.py @@ -1,5 +1,5 @@ import macpath -from test import support +from test import support, test_genericpath import unittest @@ -139,8 +139,13 @@ class MacPathTestCase(unittest.TestCase): self.assertEqual(normpath(b"a:"), b"a:") self.assertEqual(normpath(b"a:b:"), b"a:b") + +class MacCommonTest(test_genericpath.CommonTest): + pathmodule = macpath + + def test_main(): - support.run_unittest(MacPathTestCase) + support.run_unittest(MacPathTestCase, MacCommonTest) if __name__ == "__main__": |