()
| 2064 | |
| 2065 | |
| 2066 | def _check_tracemalloc(): |
| 2067 | # Issue #10915, #15751: PyGILState_*() functions don't work with |
| 2068 | # sub-interpreters, the tracemalloc module uses these functions internally |
| 2069 | try: |
| 2070 | import tracemalloc |
| 2071 | except ImportError: |
| 2072 | pass |
| 2073 | else: |
| 2074 | if tracemalloc.is_tracing(): |
| 2075 | raise unittest.SkipTest("run_in_subinterp() cannot be used " |
| 2076 | "if tracemalloc module is tracing " |
| 2077 | "memory allocations") |
| 2078 | |
| 2079 | |
| 2080 | def check_free_after_iterating(test, iter, cls, args=()): |
no outgoing calls
no test coverage detected
searching dependent graphs…