Skip to content

Commit

Permalink
Merge pull request #384 from untitaker/open-graphical-browser-hotfix
Browse files Browse the repository at this point in the history
Fix broken test for webbrowser internals
  • Loading branch information
untitaker committed Mar 13, 2016
2 parents d885429 + c95fa8f commit dac6295
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Expand Up @@ -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
=============

Expand Down
6 changes: 3 additions & 3 deletions tests/utils/test_main.py
Expand Up @@ -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', [])

Expand Down

0 comments on commit dac6295

Please sign in to comment.