Merge pull request #384 from untitaker/open-graphical-browser-hotfix

Fix broken test for webbrowser internals
This commit is contained in:
Markus Unterwaditzer 2016-03-13 20:54:46 +01:00
commit dac6295376
2 changed files with 11 additions and 3 deletions

View file

@ -9,6 +9,14 @@ Package maintainers and users who have to manually update their installation
may want to subscribe to `GitHub's tag feed
<https://github.com/untitaker/vdirsyncer/tags.atom>`_.
Version 0.9.2
=============
*released on 13 March 2016*
- Fixed testsuite for environments that don't have any web browser installed.
See :ghpr:`384`.
Version 0.9.1
=============

View file

@ -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', [])