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

Method test_realpath_curdir

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

testerFunction · 0.85

Tested by

no test coverage detected