diff --git a/src/helper_random.py b/src/helper_random.py index 9a29d5e2..4290689c 100644 --- a/src/helper_random.py +++ b/src/helper_random.py @@ -3,7 +3,10 @@ import os import random -from pyelliptic.openssl import OpenSSL +try: + from pyelliptic.openssl import OpenSSL +except ModuleNotFoundError: + from .pyelliptic.openssl import OpenSSL NoneType = type(None) diff --git a/src/tests/test_process.py b/src/tests/test_process.py index 901d2ecc..7787e1f2 100644 --- a/src/tests/test_process.py +++ b/src/tests/test_process.py @@ -11,6 +11,9 @@ import time import unittest import psutil from .common import cleanup, put_signal_file +from .common import cleanup, put_signal_file, skip_python3 + +skip_python3() class TestProcessProto(unittest.TestCase):