mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
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. ........
This commit is contained in:
parent
961683ac0f
commit
c9c79784cf
5 changed files with 211 additions and 230 deletions
|
@ -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__":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue