Skip to content

Commit c18ec8e

Browse files
committed
test: somehow unclosed db warnings are in the list sometimes?
1 parent 1737cac commit c18ec8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -625,7 +625,7 @@ def test_warn_once(self) -> None:
625625

626626
assert_coverage_warnings(warns, "Warning, warning 1! (bot)")
627627
# No "Warning, warning 2!" in warns
628-
assert len(warns) == 1
628+
assert len(get_coverage_warnings(warns)) == 1
629629

630630
def test_warnings_with_urls(self) -> None:
631631
with pytest.warns(Warning) as warns:

0 commit comments

Comments
 (0)