mirror of
https://github.com/samsonjs/vdirsyncer.git
synced 2026-03-29 09:35:50 +00:00
Merge pull request #384 from untitaker/open-graphical-browser-hotfix
Fix broken test for webbrowser internals
This commit is contained in:
commit
dac6295376
2 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||
=============
|
||||
|
||||
|
|
|
|||
|
|
@ -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