Home
last modified time | relevance | path

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

/third_party/python/Lib/test/test_importlib/
Dtest_locks.py123 self.assertNotIn(name, self.bootstrap._module_locks)
125 self.assertIn(name, self.bootstrap._module_locks)
129 self.assertNotIn(name, self.bootstrap._module_locks)
134 self.assertEqual(0, len(self.bootstrap._module_locks),
135 self.bootstrap._module_locks)
/third_party/python/Lib/importlib/
D_bootstrap.py56 _module_locks = {} variable
188 lock = _module_locks[name]()
204 if _module_locks.get(name) is ref:
205 del _module_locks[name]
209 _module_locks[name] = _weakref.ref(lock, cb)