diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2017-11-04 13:17:20 -0200 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2017-11-04 13:59:10 -0200 |
commit | 03829fde8afde32c7ee4ff0d01b728b405e24b5d (patch) | |
tree | 073285a5a034651c2a3e7ef053d4590cd24a079d /_pytest/_code/code.py | |
parent | 2e2f72156a9a8e735b95c719cfeef74d243d0739 (diff) | |
download | pytest-03829fde8afde32c7ee4ff0d01b728b405e24b5d.tar.gz |
Fix linting E741: ambiguous variable name
Diffstat (limited to '_pytest/_code/code.py')
-rw-r--r-- | _pytest/_code/code.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/_pytest/_code/code.py b/_pytest/_code/code.py index cf10fb6bc..34655abeb 100644 --- a/_pytest/_code/code.py +++ b/_pytest/_code/code.py @@ -338,16 +338,16 @@ class Traceback(list): # XXX needs a test key = entry.frame.code.path, id(entry.frame.code.raw), entry.lineno # print "checking for recursion at", key - l = cache.setdefault(key, []) - if l: + values = cache.setdefault(key, []) + if values: f = entry.frame loc = f.f_locals - for otherloc in l: + for otherloc in values: if f.is_true(f.eval(co_equal, __recursioncache_locals_1=loc, __recursioncache_locals_2=otherloc)): return i - l.append(entry.frame.f_locals) + values.append(entry.frame.f_locals) return None |