| 495 | tester("ntpath.realpath('\\'.join(['.'] * 100), strict=True)", expected) |
| 496 | |
| 497 | def test_realpath_curdir_missing_ok(self): |
| 498 | expected = ntpath.normpath(os.getcwd()) |
| 499 | tester("ntpath.realpath('.', strict=ALLOW_MISSING)", |
| 500 | expected) |
| 501 | tester("ntpath.realpath('./.', strict=ALLOW_MISSING)", |
| 502 | expected) |
| 503 | tester("ntpath.realpath('/'.join(['.'] * 100), strict=ALLOW_MISSING)", |
| 504 | expected) |
| 505 | tester("ntpath.realpath('.\\.', strict=ALLOW_MISSING)", |
| 506 | expected) |
| 507 | tester("ntpath.realpath('\\'.join(['.'] * 100), strict=ALLOW_MISSING)", |
| 508 | expected) |
| 509 | |
| 510 | def test_realpath_pardir(self): |
| 511 | expected = ntpath.normpath(os.getcwd()) |