mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-25 08:55:50 +00:00
Fix broken test for webbrowser internals
List may be empty if running in minimal environment.
This commit is contained in:
parent
d8854294e1
commit
0e7fa2ed62
1 changed files with 3 additions and 3 deletions
|
|
@ -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', [])
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue