From f4c9f2fec4227964105f89d986fb7cb2b237971b Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 22 Apr 2022 21:55:09 +0200 Subject: Use mock.Mock to mock Xvfbwrapper on Windows --- tests/test_mpv.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'tests') diff --git a/tests/test_mpv.py b/tests/test_mpv.py index a9aad9f..0830e23 100755 --- a/tests/test_mpv.py +++ b/tests/test_mpv.py @@ -38,11 +38,8 @@ import mpv if os.name == 'nt': + Xvfb = mock.Mock() testvo='gpu' - class Xvfb(): - def __init__(self): pass - def start(self): pass - def stop(self): pass else: from xvfbwrapper import Xvfb -- cgit