Use mock.Mock to mock Xvfbwrapper on Windows
This commit is contained in:
parent
2d87c897e2
commit
f4c9f2fec4
1 changed files with 1 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue