Skip to content

Commit

Permalink
Massage coverage numbers again.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Jun 5, 2023
1 parent 1240e68 commit 685578a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions jsonschema/tests/test_validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -2134,7 +2134,7 @@ def test_validation_across_a_second_thread(self):
def validate():
try:
validators.validate(instance=37, schema=True)
except: # noqa: E722, pragma: no cover
except: # pragma: no cover # noqa: E722
failed.append(sys.exc_info())

validate() # just verify it succeeds
Expand Down Expand Up @@ -2196,7 +2196,7 @@ def test_it_retrieves_unstored_refs_via_requests(self):
ref = "http://bar#baz"
schema = {"baz": 12}

if "requests" in sys.modules:
if "requests" in sys.modules: # pragma: no cover
self.addCleanup(
sys.modules.__setitem__, "requests", sys.modules["requests"],
)
Expand All @@ -2209,7 +2209,7 @@ def test_it_retrieves_unstored_refs_via_urlopen(self):
ref = "http://bar#baz"
schema = {"baz": 12}

if "requests" in sys.modules:
if "requests" in sys.modules: # pragma: no cover
self.addCleanup(
sys.modules.__setitem__, "requests", sys.modules["requests"],
)
Expand Down

0 comments on commit 685578a

Please sign in to comment.