You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
348 B
17 lines
348 B
diff --git a/tests/test_pid.py b/tests/test_pid.py
|
|
index 7c57c46..e36c29e 100644
|
|
--- a/tests/test_pid.py
|
|
+++ b/tests/test_pid.py
|
|
@@ -2,7 +2,10 @@
|
|
import os.path
|
|
import signal
|
|
from contextlib import contextmanager
|
|
-from mock import patch
|
|
+try:
|
|
+ from unittest.mock import patch
|
|
+except ImportError:
|
|
+ from mock import patch
|
|
|
|
import pid
|
|
|