Neal Norwitz | edc8f13 | 2006-02-28 19:02:05 +0000 | [diff] [blame] | 1 | This directory contains test cases that are known to leak references. |
| 2 | The idea is that you can import these modules while in the interpreter |
| 3 | and call the leak function repeatedly. This will only be helpful if |
| 4 | the interpreter was built in debug mode. If the total ref count |
Neal Norwitz | cd8ca80 | 2006-02-28 20:40:50 +0000 | [diff] [blame^] | 5 | doesn't increase, the bug has been fixed and the file should be removed |
| 6 | from the repository. |
Neal Norwitz | edc8f13 | 2006-02-28 19:02:05 +0000 | [diff] [blame] | 7 | |
| 8 | Here's an example interpreter session for test_gestalt which still leaks: |
| 9 | |
| 10 | >>> from test.leakers.test_gestalt import leak |
| 11 | [24275 refs] |
| 12 | >>> leak() |
| 13 | [28936 refs] |
| 14 | >>> leak() |
| 15 | [28938 refs] |
| 16 | >>> leak() |
| 17 | [28940 refs] |
| 18 | >>> |
| 19 | |