From 9439a8f1457e2a5379f37daf39823bc45402c086 Mon Sep 17 00:00:00 2001 From: Muzahid Date: Mon, 21 Jun 2021 20:47:09 +0530 Subject: [PATCH] cover test process --- src/helper_random.py | 5 ++++- src/tests/test_process.py | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) 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):