Debian Codegraph @

tests/isolated/patcher_existing_locks_exception.py

raw
1 __test__ = False
2
3
4 class BadDict(dict):
5 def items(self):
6 raise Exception()
7
8
9 if __name__ == '__main__':
10 import threading
11 test_lock = threading.RLock()
12 test_lock.acquire()
13 baddict = BadDict(testkey='testvalue')
14
15 import eventlet
16 eventlet.monkey_patch()
17
18 print('pass')