aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_wsgi.py
diff options
context:
space:
mode:
authorSam Cleveland <sam@zombisoft.com>2015-11-11 20:27:10 -0600
committerSam Cleveland <sam@zombisoft.com>2015-11-11 20:27:10 -0600
commit2bd7bcb3711a20b6a166710f2c7d989d8ae5fcc8 (patch)
tree4dc07144bfe36acce1f6df490522e099d54b1b10 /test/test_wsgi.py
parent6689a342ae68c75bd52d81ee1959b1946739eca4 (diff)
downloadmitmproxy-2bd7bcb3711a20b6a166710f2c7d989d8ae5fcc8.tar.gz
mitmproxy-2bd7bcb3711a20b6a166710f2c7d989d8ae5fcc8.tar.bz2
mitmproxy-2bd7bcb3711a20b6a166710f2c7d989d8ae5fcc8.zip
Porting to Python 3.4
Updated wsgi to support Python 3.4 byte strings. Updated test_wsgi to remove py.test warning for TestApp having an __init__ constructor. samc$ sudo py.test netlib/test/test_wsgi.py -r w = test session starts = platform darwin -- Python 3.4.1, pytest-2.8.2, py-1.4.30, pluggy-0.3.1 rootdir: /Users/samc/src/python/netlib, inifile: collected 6 items netlib/test/test_wsgi.py ...... = 6 passed in 0.20 seconds =
Diffstat (limited to 'test/test_wsgi.py')
-rw-r--r--test/test_wsgi.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/test/test_wsgi.py b/test/test_wsgi.py
index fe6f09b5..ec6e8c63 100644
--- a/test/test_wsgi.py
+++ b/test/test_wsgi.py
@@ -12,8 +12,6 @@ def tflow():
class TestApp:
- def __init__(self):
- self.called = False
def __call__(self, environ, start_response):
self.called = True