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

Method test_refleaks

Lib/test/test_patma.py:20–25  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

18class TestCompiler(unittest.TestCase):
19
20 def test_refleaks(self):
21 # Hunting for leaks using -R doesn't catch leaks in the compiler itself,
22 # just the code under test. This test ensures that if there are leaks in
23 # the pattern compiler, those runs will fail:
24 with open(__file__) as file:
25 compile(file.read(), __file__, "exec")
26
27
28class TestInheritance(unittest.TestCase):

Callers

nothing calls this directly

Calls 3

openFunction · 0.50
compileFunction · 0.50
readMethod · 0.45

Tested by

no test coverage detected