MCPcopy Index your code
hub / github.com/python/cpython / test_realpath_curdir_missing_ok

Method test_realpath_curdir_missing_ok

Lib/test/test_ntpath.py:497–508  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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())

Callers

nothing calls this directly

Calls 1

testerFunction · 0.85

Tested by

no test coverage detected