MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_refleaks

Method test_refleaks

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

Source from the content-addressed store, hash-verified

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