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

Method test_srcdir_independent_of_cwd

Lib/test/test_sysconfig.py:550–556  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

548 self.assertEqual(makefile_dir, srcdir)
549
550 def test_srcdir_independent_of_cwd(self):
551 # srcdir should be independent of the current working directory
552 # See Issues #15322, #15364.
553 srcdir = sysconfig.get_config_var('srcdir')
554 with change_cwd(os.pardir):
555 srcdir2 = sysconfig.get_config_var('srcdir')
556 self.assertEqual(srcdir, srcdir2)
557
558 @unittest.skipIf(sysconfig.get_config_var('EXT_SUFFIX') is None,
559 'EXT_SUFFIX required for this test')

Callers

nothing calls this directly

Calls 2

change_cwdFunction · 0.90
assertEqualMethod · 0.45

Tested by

no test coverage detected