MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_realpath_curdir

Method test_realpath_curdir

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

testerFunction · 0.85

Tested by

no test coverage detected