diff --git a/tests/utils/test_main.py b/tests/utils/test_main.py index d5622d9..2c63507 100644 --- a/tests/utils/test_main.py +++ b/tests/utils/test_main.py @@ -83,9 +83,9 @@ def test_request_ssl_fingerprints(httpsserver, fingerprint): def test_open_graphical_browser(monkeypatch): import webbrowser - # Just assert that this internal attribute still exists,is some sort of - # collection and non-empty - assert len(webbrowser._tryorder) + # Just assert that this internal attribute still exists and is some sort of + # collection. + iter(webbrowser._tryorder) monkeypatch.setattr('webbrowser._tryorder', [])