diff options
author | James E. King, III <jking@apache.org> | 2017-10-25 09:57:18 -0400 |
---|---|---|
committer | James E. King, III <jking@apache.org> | 2017-10-26 11:37:02 -0400 |
commit | 350fe7531feecf7df5208fa19d25730c6ce0a30d (patch) | |
tree | 89021ac90d92fbcc07ef41f118fc29b7ce80b4a4 /test/features | |
parent | 254e86b0103be51c6af9cc50220ee8c144234239 (diff) | |
download | thrift-350fe7531feecf7df5208fa19d25730c6ce0a30d.tar.gz |
THRIFT-4370: build generated code before running static code analysis;
fix E722 flake8 issues identified in python code
This closes #1399
Diffstat (limited to 'test/features')
-rw-r--r-- | test/features/container_limit.py | 2 | ||||
-rw-r--r-- | test/features/string_limit.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/features/container_limit.py b/test/features/container_limit.py index a16e3641e..88f8487fa 100644 --- a/test/features/container_limit.py +++ b/test/features/container_limit.py @@ -61,7 +61,7 @@ def main(argv): print('[OK]: just limit') try: test_list(proto, list(range(args.limit + 1))) - except: + except Exception: print('[OK]: limit + 1') else: print('[ERROR]: limit + 1') diff --git a/test/features/string_limit.py b/test/features/string_limit.py index 14f57d083..b8991d64f 100644 --- a/test/features/string_limit.py +++ b/test/features/string_limit.py @@ -51,7 +51,7 @@ def main(argv): print('[OK]: just limit') try: test_string(proto, 'a' * (args.limit + 1)) - except: + except Exception: print('[OK]: limit + 1') else: print('[ERROR]: limit + 1') |