From 0e7fa2ed62448519feb138cb4414c470fd2a7774 Mon Sep 17 00:00:00 2001 From: Markus Unterwaditzer Date: Sun, 13 Mar 2016 20:37:42 +0100 Subject: [PATCH] Fix broken test for webbrowser internals List may be empty if running in minimal environment. --- tests/utils/test_main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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', [])