From ca9740df20a804043f236861278cfe70014b5d57 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Tue, 18 Jun 2013 00:53:38 +0200 Subject: skip tests on windows that don't make sense --- test/tutils.py | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'test/tutils.py') 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: -- cgit v1.2.3