|
1 | 1 | """ |
2 | | -Tests common to genericpath, macpath, ntpath and posixpath |
| 2 | +Tests common to genericpath, ntpath and posixpath |
3 | 3 | """ |
4 | 4 |
|
5 | 5 | import genericpath |
@@ -334,7 +334,7 @@ def test_invalid_paths(self): |
334 | 334 | func(b'/tmp\x00abcds') |
335 | 335 |
|
336 | 336 | # Following TestCase is not supposed to be run from test_genericpath. |
337 | | -# It is inherited by other test modules (macpath, ntpath, posixpath). |
| 337 | +# It is inherited by other test modules (ntpath, posixpath). |
338 | 338 |
|
339 | 339 | class CommonTest(GenericTest): |
340 | 340 | common_attributes = GenericTest.common_attributes + [ |
@@ -373,8 +373,6 @@ def test_splitdrive(self): |
373 | 373 | self.assertEqual(splitdrive(b":foo:bar"), (b"", b":foo:bar")) |
374 | 374 |
|
375 | 375 | def test_expandvars(self): |
376 | | - if self.pathmodule.__name__ == 'macpath': |
377 | | - self.skipTest('macpath.expandvars is a stub') |
378 | 376 | expandvars = self.pathmodule.expandvars |
379 | 377 | with support.EnvironmentVarGuard() as env: |
380 | 378 | env.clear() |
@@ -407,8 +405,6 @@ def test_expandvars(self): |
407 | 405 |
|
408 | 406 | @unittest.skipUnless(support.FS_NONASCII, 'need support.FS_NONASCII') |
409 | 407 | def test_expandvars_nonascii(self): |
410 | | - if self.pathmodule.__name__ == 'macpath': |
411 | | - self.skipTest('macpath.expandvars is a stub') |
412 | 408 | expandvars = self.pathmodule.expandvars |
413 | 409 | def check(value, expected): |
414 | 410 | self.assertEqual(expandvars(value), expected) |
|
0 commit comments