summaryrefslogtreecommitdiff
path: root/tests/test_mpv.py
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-04-22 21:55:09 +0200
committerjaseg <git@jaseg.de>2022-04-22 21:55:09 +0200
commitf4c9f2fec4227964105f89d986fb7cb2b237971b (patch)
treed45e2025525223faabbc29106dde01f693ffc1ce /tests/test_mpv.py
parent2d87c897e25ae02c4dac0a086a8d5d3b4533ccec (diff)
downloadpython-mpv-f4c9f2fec4227964105f89d986fb7cb2b237971b.tar.gz
python-mpv-f4c9f2fec4227964105f89d986fb7cb2b237971b.tar.bz2
python-mpv-f4c9f2fec4227964105f89d986fb7cb2b237971b.zip
Use mock.Mock to mock Xvfbwrapper on Windows
Diffstat (limited to 'tests/test_mpv.py')
-rwxr-xr-xtests/test_mpv.py5
1 files changed, 1 insertions, 4 deletions
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