diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2019-12-31 12:30:18 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2019-12-31 12:30:18 (GMT) |
commit | 397d162b9a044e5b13a953f0d2ed1bf01d396cb2 (patch) | |
tree | 89a20fc5af1dce54b4f9e6cf810bf9e84951a804 | |
parent | a07134e33934bdd4b50d2a4d3293fcd3f495a3d6 (diff) | |
download | CMake-397d162b9a044e5b13a953f0d2ed1bf01d396cb2.zip CMake-397d162b9a044e5b13a953f0d2ed1bf01d396cb2.tar.gz CMake-397d162b9a044e5b13a953f0d2ed1bf01d396cb2.tar.bz2 |
Tests: do not use the same variable name in nested loops
Spotted by LGTM.com.
-rwxr-xr-x | Tests/RunCMake/CommandLine/trace-json-v1-check.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Tests/RunCMake/CommandLine/trace-json-v1-check.py b/Tests/RunCMake/CommandLine/trace-json-v1-check.py index d69ac8f..69dfc20 100755 --- a/Tests/RunCMake/CommandLine/trace-json-v1-check.py +++ b/Tests/RunCMake/CommandLine/trace-json-v1-check.py @@ -60,8 +60,8 @@ with open(args.trace, 'r') as fp: assert isinstance(line['file'], unicode) assert isinstance(line['line'], int) - for i in required_traces: - if i['cmd'] == line['cmd'] and i['args'] == line['args']: - i['found'] = True + for j in required_traces: + if j['cmd'] == line['cmd'] and j['args'] == line['args']: + j['found'] = True assert all([x.get('found', False) == True for x in required_traces]) |