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

Method test_realpath_curdir

Lib/test/test_posixpath.py:453–460  ·  view source on GitHub ↗
(self, kwargs)

Source from the content-addressed store, hash-verified

451 @skip_if_ABSTFN_contains_backslash
452 @_parameterize({}, {'strict': True}, {'strict': ALL_BUT_LAST}, {'strict': ALLOW_MISSING})
453 def test_realpath_curdir(self, kwargs):
454 self.assertEqual(realpath('.', **kwargs), os.getcwd())
455 self.assertEqual(realpath('./.', **kwargs), os.getcwd())
456 self.assertEqual(realpath('/'.join(['.'] * 100), **kwargs), os.getcwd())
457
458 self.assertEqual(realpath(b'.', **kwargs), os.getcwdb())
459 self.assertEqual(realpath(b'./.', **kwargs), os.getcwdb())
460 self.assertEqual(realpath(b'/'.join([b'.'] * 100), **kwargs), os.getcwdb())
461
462 @skip_if_ABSTFN_contains_backslash
463 @_parameterize({}, {'strict': True}, {'strict': ALL_BUT_LAST}, {'strict': ALLOW_MISSING})

Callers

nothing calls this directly

Calls 3

realpathFunction · 0.90
assertEqualMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected