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

Method test_hardlink

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

Source from the content-addressed store, hash-verified

1060 not docstring)
1061
1062 def test_hardlink(self):
1063 # Test deduplication on all combinations
1064 for code, docstring, assertion in self.iter_codes():
1065 with self.subTest(docstring=docstring, assertion=assertion):
1066 with self.temporary_directory():
1067 script = self.make_script(code)
1068 self.compile_dir()
1069 self.check_hardlinks(script, docstring, assertion)
1070
1071 def test_only_two_levels(self):
1072 # Don't build the 3 optimization levels, but only 2

Callers

nothing calls this directly

Calls 6

iter_codesMethod · 0.95
temporary_directoryMethod · 0.95
make_scriptMethod · 0.95
compile_dirMethod · 0.95
check_hardlinksMethod · 0.95
subTestMethod · 0.45

Tested by

no test coverage detected