diff options
| author | Hubert Kario <hubert@kario.pl> | 2020-12-14 10:45:17 +0100 |
|---|---|---|
| committer | Hubert Kario <hubert@kario.pl> | 2020-12-14 11:11:54 +0100 |
| commit | 2fcfca230269a8582fab3cdb2d0dfb28e70241f3 (patch) | |
| tree | 5e3c9d9b8c1a244246ea3a574b3b0e395492f216 | |
| parent | 5d8f55d10768cb7a5036b3b17823db5f03f7e94c (diff) | |
| download | ecdsa-2fcfca230269a8582fab3cdb2d0dfb28e70241f3.tar.gz | |
ensure RWLock coverage even if we don't use it
| -rw-r--r-- | src/ecdsa/test_rw_lock.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ecdsa/test_rw_lock.py b/src/ecdsa/test_rw_lock.py index d360482..0a84b9c 100644 --- a/src/ecdsa/test_rw_lock.py +++ b/src/ecdsa/test_rw_lock.py @@ -2,7 +2,10 @@ # https://code.activestate.com/recipes/577803-reader-writer-lock-with-priority-for-writers/ # released under the MIT licence -import unittest +try: + import unittest2 as unittest +except ImportError: + import unittest import threading import time import copy |
