Skip to content

Commit

Permalink
Fix test for Python 3.9
Browse files Browse the repository at this point in the history
Python 3.9 has neither dummy_thread nor _dummy_thread anymore. Using _thread.allocate_lock passes all tests here.
  • Loading branch information
felixonmars committed Nov 13, 2020
1 parent 666ee46 commit 7550429
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/aspectlib/test.py
Expand Up @@ -29,7 +29,10 @@
try:
from dummy_thread import allocate_lock
except ImportError:
from _dummy_thread import allocate_lock
try:
from _dummy_thread import allocate_lock
except ImportError:
from _thread import allocate_lock
try:
from collections import OrderedDict
except ImportError:
Expand Down

0 comments on commit 7550429

Please sign in to comment.