Merge pull request #408 from michael-lazar/fix_travis

Fix travis
This commit is contained in:
Michael Lazar authored and GitHub committed 2017-08-07 00:06:18 -04:00
commit c5936f4253
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
language: python
dist: precise
dist: trusty
python:
- 2.7
- 3.3
+2 -1
View File
@@ -37,7 +37,8 @@ def test_terminal_properties(terminal, config):
terminal._display = None
with mock.patch('rtv.terminal.sys') as sys, \
mock.patch.dict('os.environ', {'DISPLAY': ''}):
mock.patch('os.environ', {'DISPLAY': ''}), \
mock.patch('webbrowser._tryorder', new=[]):
sys.platform = 'darwin'
assert terminal.display is True