summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHubert Kario <hubert@kario.pl>2023-02-23 22:57:35 +0100
committerHubert Kario <hubert@kario.pl>2023-02-24 15:41:55 +0100
commitf10e6d9be1251f9a109c0c2002ed12fee818b883 (patch)
treeff72fab34d8dc2f036171428f84ff88e38ca31c2
parent5a114fddcc4c336d53180270d81d6aa42c5ee95b (diff)
downloadecdsa-f10e6d9be1251f9a109c0c2002ed12fee818b883.tar.gz
skip tests breaking coverage on pypy
-rw-r--r--src/ecdsa/test_jacobi.py14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/ecdsa/test_jacobi.py b/src/ecdsa/test_jacobi.py
index 71fb33e..b3e69c0 100644
--- a/src/ecdsa/test_jacobi.py
+++ b/src/ecdsa/test_jacobi.py
@@ -558,8 +558,12 @@ class TestJacobi(unittest.TestCase):
self.assertEqual(pickle.loads(pickle.dumps(pj)), pj)
@settings(**NO_OLD_SETTINGS)
+ @pytest.mark.skipif(
+ platform.python_implementation() == "PyPy",
+ reason="threading on PyPy breaks coverage",
+ )
@given(st.integers(min_value=1, max_value=10))
- def test_multithreading(self, thread_num):
+ def test_multithreading(self, thread_num): # pragma: no cover
# ensure that generator's precomputation table is filled
generator_112r2 * 2
@@ -592,10 +596,12 @@ class TestJacobi(unittest.TestCase):
)
@pytest.mark.skipif(
- platform.system() == "Windows",
- reason="there are no signals on Windows",
+ platform.system() == "Windows"
+ or platform.python_implementation() == "PyPy",
+ reason="there are no signals on Windows, and threading breaks coverage"
+ " on PyPy",
)
- def test_multithreading_with_interrupts(self):
+ def test_multithreading_with_interrupts(self): # pragma: no cover
thread_num = 10
# ensure that generator's precomputation table is filled
generator_112r2 * 2