mirror of
https://github.com/zhigang1992/mitmproxy.git
synced 2026-04-23 20:00:09 +08:00
skip tests on windows that don't make sense
This commit is contained in:
@@ -133,6 +133,7 @@ class TestProcessProxyOptions:
|
||||
|
||||
|
||||
class TestProxyServer:
|
||||
@tutils.SkipWindows # binding to 0.0.0.0:1 works without special permissions on Windows
|
||||
def test_err(self):
|
||||
parser = argparse.ArgumentParser()
|
||||
cmdline.common_options(parser)
|
||||
|
||||
@@ -2,7 +2,15 @@ import os, shutil, tempfile
|
||||
from contextlib import contextmanager
|
||||
from libmproxy import flow, utils, controller
|
||||
from netlib import certutils
|
||||
import mock
|
||||
from nose.plugins.skip import SkipTest
|
||||
|
||||
def _SkipWindows():
|
||||
raise SkipTest("Skipped on Windows.")
|
||||
def SkipWindows(fn):
|
||||
if os.name == "nt":
|
||||
return _SkipWindows
|
||||
else:
|
||||
return fn
|
||||
|
||||
def treq(conn=None):
|
||||
if not conn:
|
||||
|
||||
Reference in New Issue
Block a user