aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_examples.py
diff options
context:
space:
mode:
authorMaximilian Hils <git@maximilianhils.com>2015-07-24 02:57:56 +0200
committerMaximilian Hils <git@maximilianhils.com>2015-07-24 02:57:56 +0200
commit7bf8088d8044c3ff730380fca8a4bf9fadced36a (patch)
treec96e6b94c76cdf6a9c03f04e111bc7561546fd4d /test/test_examples.py
parent9b3fe806974b6c6595a2afc01bbf1ee7dd739dfd (diff)
downloadmitmproxy-7bf8088d8044c3ff730380fca8a4bf9fadced36a.tar.gz
mitmproxy-7bf8088d8044c3ff730380fca8a4bf9fadced36a.tar.bz2
mitmproxy-7bf8088d8044c3ff730380fca8a4bf9fadced36a.zip
improve inline scripts, fix #683, fix #684
Diffstat (limited to 'test/test_examples.py')
-rw-r--r--test/test_examples.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_examples.py b/test/test_examples.py
index e9bccd2e..54577e67 100644
--- a/test/test_examples.py
+++ b/test/test_examples.py
@@ -22,7 +22,7 @@ def test_load_scripts():
try:
s = script.Script(f, tmaster) # Loads the script file.
except Exception as v:
- if not "ImportError" in str(v):
+ if "ImportError" not in str(v):
raise
else:
s.unload()