Skip to content

Commit e8ae30e

Browse files
committed
Fix formation warning unit test for Python 3.8
1 parent 493e117 commit e8ae30e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_application.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1242,8 +1242,8 @@ def reset_nib(_):
12421242
# Finally test startup with auto forming
12431243
await app.startup(auto_form=True)
12441244

1245-
# We should receive no warnings or errors
1246-
assert not caplog.records
1245+
# We should receive no application warnings or errors
1246+
assert not [r for r in caplog.records if "Task was destroyed" not in r.getMessage()]
12471247

12481248
if channel in (25, None):
12491249
assert app.update_network.call_count == 1

0 commit comments

Comments
 (0)