commit | 4e27f7bb13f041b81ef6b180dcbdd0979c6619ee | [log] [tgz] |
---|---|---|
author | Wenzel Jakob <wenzel.jakob@epfl.ch> | Sun Jul 10 11:01:35 2016 +0200 |
committer | Wenzel Jakob <wenzel.jakob@epfl.ch> | Sun Jul 10 11:01:35 2016 +0200 |
tree | ead8e31d9a1c7c3014fd9f078255feb98a7675f0 | |
parent | e6b2f75949f86952fc19985c51c0d07602b8af8a [diff] [blame] |
python 2.7 fix for example 5
diff --git a/example/example5.py b/example/example5.py index 2526042..674174a 100755 --- a/example/example5.py +++ b/example/example5.py
@@ -77,7 +77,8 @@ test_dummy_function(lambda x, y: x + y) print("Problem!") except Exception as e: - if 'missing 1 required positional argument' in str(e): + if 'missing 1 required positional argument' in str(e) or \ + 'takes exactly 2 arguments' in str(e): print("All OK!") else: print("Problem!")