Fix linting E741: ambiguous variable name

This commit is contained in:
Bruno Oliveira
2017-11-04 13:17:20 -02:00
parent 2e2f72156a
commit 03829fde8a
34 changed files with 457 additions and 459 deletions

View File

@@ -93,8 +93,8 @@ class TestMockDecoration(object):
def f(x):
pass
l = getfuncargnames(f)
assert l == ("x",)
values = getfuncargnames(f)
assert values == ("x",)
def test_wrapped_getfuncargnames_patching(self):
from _pytest.compat import getfuncargnames
@@ -110,8 +110,8 @@ class TestMockDecoration(object):
def f(x, y, z):
pass
l = getfuncargnames(f)
assert l == ("y", "z")
values = getfuncargnames(f)
assert values == ("y", "z")
def test_unittest_mock(self, testdir):
pytest.importorskip("unittest.mock")