()
| 158 | |
| 159 | |
| 160 | def get_temp_module_name(): |
| 161 | # Assume single-threaded, and the module dir usable only by this thread |
| 162 | global _module_num |
| 163 | get_module_dir() |
| 164 | name = f"_test_ext_module_{_module_num}" |
| 165 | _module_num += 1 |
| 166 | if name in sys.modules: |
| 167 | # this should not be possible, but check anyway |
| 168 | raise RuntimeError("Temporary module name already in use.") |
| 169 | return name |
| 170 | |
| 171 | |
| 172 | def _memoize(func): |
no test coverage detected
searching dependent graphs…