(self)
| 473 | self.assertEqual(normpath(b'\xff\\..\\foo'), b'foo') |
| 474 | |
| 475 | def test_realpath_curdir(self): |
| 476 | expected = ntpath.normpath(os.getcwd()) |
| 477 | tester("ntpath.realpath('.')", expected) |
| 478 | tester("ntpath.realpath('./.')", expected) |
| 479 | tester("ntpath.realpath('/'.join(['.'] * 100))", expected) |
| 480 | tester("ntpath.realpath('.\\.')", expected) |
| 481 | tester("ntpath.realpath('\\'.join(['.'] * 100))", expected) |
| 482 | |
| 483 | def test_realpath_curdir_strict(self): |
| 484 | expected = ntpath.normpath(os.getcwd()) |