Home
last modified time | relevance | path

Searched refs:_module_locks (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Lib/test/test_importlib/
Dtest_locks.py121 self.assertNotIn(name, self.bootstrap._module_locks)
123 self.assertIn(name, self.bootstrap._module_locks)
127 self.assertNotIn(name, self.bootstrap._module_locks)
132 self.assertEqual(0, len(self.bootstrap._module_locks),
133 self.bootstrap._module_locks)
/external/python/cpython3/Lib/importlib/
D_bootstrap.py43 _module_locks = {} variable
175 lock = _module_locks[name]()
191 if _module_locks.get(name) is ref:
192 del _module_locks[name]
196 _module_locks[name] = _weakref.ref(lock, cb)