summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2020-01-02 15:03:30 (GMT)
committerKitware Robot <kwrobot@kitware.com>2020-01-02 15:03:37 (GMT)
commit98272cd1553800a6f667ffeac5da365ba95726b3 (patch)
tree2d9e4decee9e9ce9a4c415272a5db2a0ab5101b5
parent47a907413bb8aa2394a3003c90775b402b53d35a (diff)
parent397d162b9a044e5b13a953f0d2ed1bf01d396cb2 (diff)
downloadCMake-98272cd1553800a6f667ffeac5da365ba95726b3.zip
CMake-98272cd1553800a6f667ffeac5da365ba95726b3.tar.gz
CMake-98272cd1553800a6f667ffeac5da365ba95726b3.tar.bz2
Merge topic 'double-i'
397d162b9a Tests: do not use the same variable name in nested loops Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !4172
-rwxr-xr-xTests/RunCMake/CommandLine/trace-json-v1-check.py6
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])