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

Method test_disabled

Lib/test/test_compileall.py:1041–1051  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1039 yield (code, docstring, assertion)
1040
1041 def test_disabled(self):
1042 # Deduplication disabled, no hardlinks
1043 for code, docstring, assertion in self.iter_codes():
1044 with self.subTest(docstring=docstring, assertion=assertion):
1045 with self.temporary_directory():
1046 script = self.make_script(code)
1047 pycs = get_pycs(script)
1048 self.compile_dir(dedup=False)
1049 self.assertFalse(is_hardlink(pycs[0], pycs[1]))
1050 self.assertFalse(is_hardlink(pycs[0], pycs[2]))
1051 self.assertFalse(is_hardlink(pycs[1], pycs[2]))
1052
1053 def check_hardlinks(self, script, docstring=False, assertion=False):
1054 pycs = get_pycs(script)

Callers

nothing calls this directly

Calls 8

iter_codesMethod · 0.95
temporary_directoryMethod · 0.95
make_scriptMethod · 0.95
compile_dirMethod · 0.95
get_pycsFunction · 0.85
is_hardlinkFunction · 0.85
assertFalseMethod · 0.80
subTestMethod · 0.45

Tested by

no test coverage detected