Skip to content

Commit 9bce86a

Browse files
committed
Disable coverage on PyPy
1 parent a4d7bb1 commit 9bce86a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@ jobs:
3737
- name: Install dependencies
3838
run: python -m pip install --upgrade pip setuptools tox
3939
- name: Run tests
40-
run: python -m tox --recreate -e test
40+
# Disable coverage on PyPy
41+
run: python -m tox --recreate -e test $(${{ startsWith(matrix.python-version, 'pypy') }} && echo '-- -n auto --no-cov')
4142

4243
release:
4344
runs-on: ubuntu-latest

src/hypothesis_jsonschema/_encode.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
if PYTHON_IMPLEMENTATION != "PyPy":
1313
from json.encoder import _make_iterencode, encode_basestring_ascii # type: ignore
14-
else:
14+
else: # pragma: no cover
1515
_make_iterencode = None
1616
encode_basestring_ascii = None
1717

@@ -27,7 +27,7 @@ def _floatstr(o: float) -> str:
2727

2828
class CanonicalisingJsonEncoder(json.JSONEncoder):
2929

30-
if PYTHON_IMPLEMENTATION == "PyPy":
30+
if PYTHON_IMPLEMENTATION == "PyPy": # pragma: no cover
3131

3232
def _JSONEncoder__floatstr(self, o: float) -> str: # noqa: N802
3333
return _floatstr(o)

0 commit comments

Comments
 (0)