diff options
author | Julian Berman <Julian@GrayVines.com> | 2021-07-12 07:46:58 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-12 07:46:58 -0400 |
commit | c08bafd5971794384bbf57960728d8c64fd50d81 (patch) | |
tree | 71747935641b21024e33dee9ca2cbf64c132c7fe | |
parent | 61382d717165368fee825b04ae170754965aba03 (diff) | |
parent | 8745243dafa2acfafb9b2e7f7680541adaf74565 (diff) | |
download | jsonschema-c08bafd5971794384bbf57960728d8c64fd50d81.tar.gz |
Merge pull request #823 from anexia-it/coverage-python-3.9
Use python 3.9 for coverage
-rw-r--r-- | .github/workflows/coverage.yml | 4 | ||||
-rw-r--r-- | jsonschema/_format.py | 12 |
2 files changed, 8 insertions, 8 deletions
diff --git a/.github/workflows/coverage.yml b/.github/workflows/coverage.yml index 101000f..7a14bce 100644 --- a/.github/workflows/coverage.yml +++ b/.github/workflows/coverage.yml @@ -14,7 +14,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v2 with: - python-version: pypy3 + python-version: 3.9 - name: Ensure we have new enough versions to respect python_version run: python -m pip install -U pip setuptools - name: Install tox @@ -22,6 +22,6 @@ jobs: - name: Collect & Upload Coverage # codecov.io is too flaky to fail for this right now continue-on-error: true - run: python -m tox -e pypy3-format-codecov + run: python -m tox -e py39-format-codecov env: CODECOV_TOKEN: 2b38dae1-41c4-4435-a29d-79a1299e5617 diff --git a/jsonschema/_format.py b/jsonschema/_format.py index 27eb4a9..bdd893d 100644 --- a/jsonschema/_format.py +++ b/jsonschema/_format.py @@ -205,7 +205,7 @@ def is_ipv6(instance): try: from fqdn import FQDN -except ImportError: +except ImportError: # pragma: no cover pass else: @_checks_drafts( @@ -223,7 +223,7 @@ else: try: # The built-in `idna` codec only implements RFC 3890, so we go elsewhere. import idna -except ImportError: +except ImportError: # pragma: no cover pass else: @_checks_drafts( @@ -242,7 +242,7 @@ try: except ImportError: try: from rfc3986_validator import validate_rfc3986 - except ImportError: + except ImportError: # pragma: no cover pass else: @_checks_drafts(name="uri") @@ -348,7 +348,7 @@ except ImportError: try: # webcolors<1.11 from webcolors import css21_names_to_hex as CSS21_NAMES_TO_HEX import webcolors - except ImportError: + except ImportError: # pragma: no cover pass else: def is_css_color_code(instance): @@ -371,7 +371,7 @@ else: try: import jsonpointer -except ImportError: +except ImportError: # pragma: no cover pass else: @_checks_drafts( @@ -413,7 +413,7 @@ else: try: import uri_template -except ImportError: +except ImportError: # pragma: no cover pass else: @_checks_drafts( |