(self)
| 18 | class 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 | |
| 28 | class TestInheritance(unittest.TestCase): |