skip tests on windows that don't make sense
This commit is contained in:
parent
d462b444b7
commit
ca9740df20
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue