From 5aa754b9bef742220d02d49c847b6115bee3819c Mon Sep 17 00:00:00 2001 From: Michael Lazar Date: Mon, 7 Aug 2017 00:01:02 -0400 Subject: [PATCH] Fix OSX mock on ubuntu test systems --- tests/test_terminal.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_terminal.py b/tests/test_terminal.py index 67f6ee4..8b341ec 100644 --- a/tests/test_terminal.py +++ b/tests/test_terminal.py @@ -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