diff options
author | Maximilian Hils <git@maximilianhils.com> | 2016-07-07 01:31:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-07 01:31:06 -0700 |
commit | c57c203037f5e43fc7948a0f2a185ac6b6ec9d42 (patch) | |
tree | bc77a497bdfd11516e91c341a3107f098c384824 /test | |
parent | 64ac2c73fe1c10bda9c5ff348e81f6dfaa7439b9 (diff) | |
parent | f259b9478fb03e816af8abde29ae369342d40e4f (diff) | |
download | mitmproxy-c57c203037f5e43fc7948a0f2a185ac6b6ec9d42.tar.gz mitmproxy-c57c203037f5e43fc7948a0f2a185ac6b6ec9d42.tar.bz2 mitmproxy-c57c203037f5e43fc7948a0f2a185ac6b6ec9d42.zip |
Merge pull request #1323 from mhils/test-examples
Exclude harparser script on Python 3
Diffstat (limited to 'test')
-rw-r--r-- | test/mitmproxy/test_examples.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/mitmproxy/test_examples.py b/test/mitmproxy/test_examples.py index 22d3c425..206a0366 100644 --- a/test/mitmproxy/test_examples.py +++ b/test/mitmproxy/test_examples.py @@ -1,6 +1,7 @@ import glob import json import os +import sys from contextlib import contextmanager from mitmproxy import script @@ -133,6 +134,12 @@ def test_redirect_requests(): def test_har_extractor(): + if sys.version_info >= (3, 0): + with tutils.raises("does not work on Python 3"): + with example("har_extractor.py -"): + pass + return + with tutils.raises(script.ScriptException): with example("har_extractor.py"): pass |