From 2e50b1073538730fc5bd6369e2cb8176874f2f03 Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Sat, 8 Mar 2014 17:19:47 +0100 Subject: [PATCH] fix windows tests, include improvements from 0.10.1 --- libmproxy/version.py | 1 + requirements.txt | 2 +- setup.py | 2 +- test/test_console_search.py | 8 +++++--- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/libmproxy/version.py b/libmproxy/version.py index 8df95c6ea..1f3289cf5 100644 --- a/libmproxy/version.py +++ b/libmproxy/version.py @@ -1,4 +1,5 @@ IVERSION = (0, 11) VERSION = ".".join(str(i) for i in IVERSION) +MINORVERSION = ".".join(str(i) for i in IVERSION[:1]) NAME = "mitmproxy" NAMEVERSION = NAME + " " + VERSION diff --git a/requirements.txt b/requirements.txt index fde846774..8c03d3648 100644 --- a/requirements.txt +++ b/requirements.txt @@ -6,7 +6,7 @@ Werkzeug>=0.8.3 lxml>=3.2.1 netlib>=0.10 pathod>=0.9.2 -pyOpenSSL>=0.13 +pyOpenSSL>=0.14 pyasn1>=0.1.7 requests>=1.2.2 urwid>=1.1.1 diff --git a/setup.py b/setup.py index 624a1a609..ffc6cc7c0 100644 --- a/setup.py +++ b/setup.py @@ -99,7 +99,7 @@ setup( "Topic :: Software Development :: Testing" ], install_requires=[ - "netlib>=%s"%version.VERSION, + "netlib>=%s"%version.MINORVERSION, "urwid>=1.1", "pyasn1>0.1.2", "pyopenssl>=0.14", diff --git a/test/test_console_search.py b/test/test_console_search.py index f4e9ff9b0..8ed463235 100644 --- a/test/test_console_search.py +++ b/test/test_console_search.py @@ -1,8 +1,10 @@ +import os +from nose.plugins.skip import SkipTest +if os.name == "nt": + raise SkipTest("Skipped on Windows.") -import sys -import libmproxy.console.contentview as cv -from libmproxy import utils, flow, encoding import tutils +import libmproxy.console.contentview as cv def test_search_highlights(): # Default text in requests is content. We will search for nt once, and