Skip to content

Commit 1ba68bb

Browse files
committed
Fix tests on Python < 3.11
1 parent 2a95766 commit 1ba68bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test_asserts.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1516,7 +1516,7 @@ def test_assert_json_subset__presence_check(self) -> None:
15161516
assert_json_subset({"foo": Absent()}, {"foo": "bar"})
15171517

15181518
def test_assert_json_subset__existence_check_old(self) -> None:
1519-
with catch_warnings(category=DeprecationWarning):
1519+
with catch_warnings():
15201520
simplefilter("ignore")
15211521
with assert_succeeds(AssertionError):
15221522
assert_json_subset({Exists("foo"): True}, {"foo": "bar"})

0 commit comments

Comments
 (0)