diff options
author | jaseg <git@jaseg.de> | 2022-04-22 21:55:09 +0200 |
---|---|---|
committer | jaseg <git@jaseg.de> | 2022-04-22 21:55:09 +0200 |
commit | f4c9f2fec4227964105f89d986fb7cb2b237971b (patch) | |
tree | d45e2025525223faabbc29106dde01f693ffc1ce /tests | |
parent | 2d87c897e25ae02c4dac0a086a8d5d3b4533ccec (diff) | |
download | python-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')
-rwxr-xr-x | tests/test_mpv.py | 5 |
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 |