Skip to content

Commit 01022c8

Browse files
committed
skip tests breaking coverage on pypy
1 parent e32ee21 commit 01022c8

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

src/ecdsa/test_jacobi.py

+10-4
Original file line numberDiff line numberDiff line change
@@ -558,8 +558,12 @@ def test_pickle(self):
558558
self.assertEqual(pickle.loads(pickle.dumps(pj)), pj)
559559

560560
@settings(**NO_OLD_SETTINGS)
561+
@pytest.mark.skipif(
562+
platform.python_implementation() == "PyPy",
563+
reason="threading on PyPy breaks coverage",
564+
)
561565
@given(st.integers(min_value=1, max_value=10))
562-
def test_multithreading(self, thread_num):
566+
def test_multithreading(self, thread_num): # pragma: no cover
563567
# ensure that generator's precomputation table is filled
564568
generator_112r2 * 2
565569

@@ -592,10 +596,12 @@ def runner(generator):
592596
)
593597

594598
@pytest.mark.skipif(
595-
platform.system() == "Windows",
596-
reason="there are no signals on Windows",
599+
platform.system() == "Windows"
600+
or platform.python_implementation() == "PyPy",
601+
reason="there are no signals on Windows, and threading breaks coverage"
602+
" on PyPy",
597603
)
598-
def test_multithreading_with_interrupts(self):
604+
def test_multithreading_with_interrupts(self): # pragma: no cover
599605
thread_num = 10
600606
# ensure that generator's precomputation table is filled
601607
generator_112r2 * 2

0 commit comments

Comments
 (0)