Skip to content

Commit 8745243

Browse files
committed
Use python 3.9 for coverage
1 parent 61382d7 commit 8745243

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
- name: Set up Python
1515
uses: actions/setup-python@v2
1616
with:
17-
python-version: pypy3
17+
python-version: 3.9
1818
- name: Ensure we have new enough versions to respect python_version
1919
run: python -m pip install -U pip setuptools
2020
- name: Install tox
2121
run: python -m pip install tox
2222
- name: Collect & Upload Coverage
2323
# codecov.io is too flaky to fail for this right now
2424
continue-on-error: true
25-
run: python -m tox -e pypy3-format-codecov
25+
run: python -m tox -e py39-format-codecov
2626
env:
2727
CODECOV_TOKEN: 2b38dae1-41c4-4435-a29d-79a1299e5617

jsonschema/_format.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ def is_ipv6(instance):
205205

206206
try:
207207
from fqdn import FQDN
208-
except ImportError:
208+
except ImportError: # pragma: no cover
209209
pass
210210
else:
211211
@_checks_drafts(
@@ -223,7 +223,7 @@ def is_host_name(instance):
223223
try:
224224
# The built-in `idna` codec only implements RFC 3890, so we go elsewhere.
225225
import idna
226-
except ImportError:
226+
except ImportError: # pragma: no cover
227227
pass
228228
else:
229229
@_checks_drafts(
@@ -242,7 +242,7 @@ def is_idn_host_name(instance):
242242
except ImportError:
243243
try:
244244
from rfc3986_validator import validate_rfc3986
245-
except ImportError:
245+
except ImportError: # pragma: no cover
246246
pass
247247
else:
248248
@_checks_drafts(name="uri")
@@ -348,7 +348,7 @@ def is_draft3_time(instance):
348348
try: # webcolors<1.11
349349
from webcolors import css21_names_to_hex as CSS21_NAMES_TO_HEX
350350
import webcolors
351-
except ImportError:
351+
except ImportError: # pragma: no cover
352352
pass
353353
else:
354354
def is_css_color_code(instance):
@@ -371,7 +371,7 @@ def is_css3_color(instance):
371371

372372
try:
373373
import jsonpointer
374-
except ImportError:
374+
except ImportError: # pragma: no cover
375375
pass
376376
else:
377377
@_checks_drafts(
@@ -413,7 +413,7 @@ def is_relative_json_pointer(instance):
413413

414414
try:
415415
import uri_template
416-
except ImportError:
416+
except ImportError: # pragma: no cover
417417
pass
418418
else:
419419
@_checks_drafts(

0 commit comments

Comments
 (0)