diff options
author | Maximilian Hils <git@maximilianhils.com> | 2013-06-18 00:53:38 +0200 |
---|---|---|
committer | Maximilian Hils <git@maximilianhils.com> | 2013-06-18 00:53:38 +0200 |
commit | ca9740df20a804043f236861278cfe70014b5d57 (patch) | |
tree | 66cb5174c191b07d475a0713103915662bb20e12 /test/tutils.py | |
parent | d462b444b7eed04927e77d8971d4b218459fdee3 (diff) | |
download | mitmproxy-ca9740df20a804043f236861278cfe70014b5d57.tar.gz mitmproxy-ca9740df20a804043f236861278cfe70014b5d57.tar.bz2 mitmproxy-ca9740df20a804043f236861278cfe70014b5d57.zip |
skip tests on windows that don't make sense
Diffstat (limited to 'test/tutils.py')
-rw-r--r-- | test/tutils.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/test/tutils.py b/test/tutils.py index fbce615a..e42256ed 100644 --- a/test/tutils.py +++ b/test/tutils.py @@ -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: |