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

Method realpath

Lib/test/test_unittest/test_discovery.py:805–808  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

803 self.addCleanup(cleanup)
804
805 def realpath(path):
806 if path == os.path.join(mod_dir, 'foo.py'):
807 return os.path.join(expected_dir, 'foo.py')
808 return path
809 os.path.realpath = realpath
810 loader = unittest.TestLoader()
811 loader.discover(start_dir='foo', pattern='foo.py')

Callers 11

PurePathTestClass · 0.45
find_libFunction · 0.45
wrapperFunction · 0.45
create_temp_dirMethod · 0.45
temp_dirMethod · 0.45
setUpMethod · 0.45
setUpMethod · 0.45
__init__Method · 0.45
temp_dirFunction · 0.45
change_cwdFunction · 0.45

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected