minor fixes

This commit is contained in:
Maximilian Hils 2016-06-28 23:48:19 -07:00
parent 7cae0c268f
commit f7d4319c5a
4 changed files with 2 additions and 3 deletions

View File

@ -12,7 +12,6 @@ addons:
env:
global:
- TOXENV=py
- CI_DEPS=codecov>=2.0.5
- CI_COMMANDS=codecov

View File

@ -1,7 +1,6 @@
from __future__ import absolute_import, print_function, division
import os
import sys
from watchdog.events import RegexMatchingEventHandler

View File

@ -1,4 +1,4 @@
def tcp_message(ctx, flow):
message = flow.messages[-1]
if not message.from_client:
message.content = message.content.replace("foo", "bar")
message.content = message.content.replace(b"foo", b"bar")

View File

@ -17,6 +17,7 @@ commands =
[testenv:py35]
setenv =
TESTS = test/netlib test/pathod/ test/mitmproxy/script test/mitmproxy/test_contentview.py test/mitmproxy/test_custom_contentview.py test/mitmproxy/test_app.py test/mitmproxy/test_controller.py test/mitmproxy/test_fuzzing.py test/mitmproxy/test_script.py test/mitmproxy/test_web_app.py test/mitmproxy/test_utils.py test/mitmproxy/test_stateobject.py test/mitmproxy/test_cmdline.py test/mitmproxy/test_contrib_tnetstring.py test/mitmproxy/test_proxy.py test/mitmproxy/test_protocol_http1.py test/mitmproxy/test_platform_pf.py
HOME = {envtmpdir}
[testenv:docs]
basepython = python