mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-23 08:11:00 +00:00
127c69c3ac
This is already included in Python 3.3+ as unittest.mock
12 lines
243 B
Python
12 lines
243 B
Python
import os
|
|
import sys
|
|
from unittest import mock
|
|
|
|
if os.name == "nt":
|
|
m = mock.Mock()
|
|
m.__version__ = "1.1.1"
|
|
m.Widget = mock.Mock
|
|
m.WidgetWrap = mock.Mock
|
|
sys.modules['urwid'] = m
|
|
sys.modules['urwid.util'] = mock.Mock()
|