File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/hypothesis_jsonschema Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 37
37
- name : Install dependencies
38
38
run : python -m pip install --upgrade pip setuptools tox
39
39
- 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')
41
42
42
43
release :
43
44
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 11
11
12
12
if PYTHON_IMPLEMENTATION != "PyPy" :
13
13
from json .encoder import _make_iterencode , encode_basestring_ascii # type: ignore
14
- else :
14
+ else : # pragma: no cover
15
15
_make_iterencode = None
16
16
encode_basestring_ascii = None
17
17
@@ -27,7 +27,7 @@ def _floatstr(o: float) -> str:
27
27
28
28
class CanonicalisingJsonEncoder (json .JSONEncoder ):
29
29
30
- if PYTHON_IMPLEMENTATION == "PyPy" :
30
+ if PYTHON_IMPLEMENTATION == "PyPy" : # pragma: no cover
31
31
32
32
def _JSONEncoder__floatstr (self , o : float ) -> str : # noqa: N802
33
33
return _floatstr (o )
You can’t perform that action at this time.
0 commit comments