Skip to content

Commit

Permalink
minor
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco-Sulla committed Jun 6, 2024
1 parent d1ccad2 commit e015fc7
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test_monkeypatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ def test_get_json_encoder(
object_to_serialize_2,
serialized_object,
):
with pytest.warns(MonkeypatchWarning):
cool.monkeypatch.patchOrUnpatchJson(patch=True, warn=True)
if cool.c_ext:
cool.monkeypatch.patchOrUnpatchJson(patch=True)
else:
with pytest.warns(MonkeypatchWarning):
cool.monkeypatch.patchOrUnpatchJson(patch=True, warn=True)

assert json.dumps(object_to_serialize) == serialized_object

Expand Down

0 comments on commit e015fc7

Please sign in to comment.