Skip to content

Commit

Permalink
skip tests breaking coverage on pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
tomato42 committed Feb 24, 2023
1 parent e32ee21 commit 01022c8
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/ecdsa/test_jacobi.py
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,12 @@ def test_pickle(self):
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

Expand Down Expand Up @@ -592,10 +596,12 @@ def runner(generator):
)

@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
Expand Down

0 comments on commit 01022c8

Please sign in to comment.