(self)
| 479 | self.assertEqual(normpath(b'\xff\\..\\foo'), b'foo') |
| 480 | |
| 481 | def test_realpath_curdir(self): |
| 482 | expected = ntpath.normpath(os.getcwd()) |
| 483 | tester("ntpath.realpath('.')", expected) |
| 484 | tester("ntpath.realpath('./.')", expected) |
| 485 | tester("ntpath.realpath('/'.join(['.'] * 100))", expected) |
| 486 | tester("ntpath.realpath('.\\.')", expected) |
| 487 | tester("ntpath.realpath('\\'.join(['.'] * 100))", expected) |
| 488 | |
| 489 | def test_realpath_curdir_strict(self): |
| 490 | expected = ntpath.normpath(os.getcwd()) |