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 /testing/test_conftest.py | |
parent | 2e2f72156a9a8e735b95c719cfeef74d243d0739 (diff) | |
download | pytest-03829fde8afde32c7ee4ff0d01b728b405e24b5d.tar.gz |
Fix linting E741: ambiguous variable name
Diffstat (limited to 'testing/test_conftest.py')
-rw-r--r-- | testing/test_conftest.py | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/testing/test_conftest.py b/testing/test_conftest.py index 39590f5f2..c0411b723 100644 --- a/testing/test_conftest.py +++ b/testing/test_conftest.py @@ -87,8 +87,8 @@ def test_doubledash_considered(testdir): conf.join("conftest.py").ensure() conftest = PytestPluginManager() conftest_setinitial(conftest, [conf.basename, conf.basename]) - l = conftest._getconftestmodules(conf) - assert len(l) == 1 + values = conftest._getconftestmodules(conf) + assert len(values) == 1 def test_issue151_load_all_conftests(testdir): @@ -130,28 +130,28 @@ def test_conftestcutdir(testdir): p = testdir.mkdir("x") conftest = PytestPluginManager() conftest_setinitial(conftest, [testdir.tmpdir], confcutdir=p) - l = conftest._getconftestmodules(p) - assert len(l) == 0 - l = conftest._getconftestmodules(conf.dirpath()) - assert len(l) == 0 + values = conftest._getconftestmodules(p) + assert len(values) == 0 + values = conftest._getconftestmodules(conf.dirpath()) + assert len(values) == 0 assert conf not in conftest._conftestpath2mod # but we can still import a conftest directly conftest._importconftest(conf) - l = conftest._getconftestmodules(conf.dirpath()) - assert l[0].__file__.startswith(str(conf)) + values = conftest._getconftestmodules(conf.dirpath()) + assert values[0].__file__.startswith(str(conf)) # and all sub paths get updated properly - l = conftest._getconftestmodules(p) - assert len(l) == 1 - assert l[0].__file__.startswith(str(conf)) + values = conftest._getconftestmodules(p) + assert len(values) == 1 + assert values[0].__file__.startswith(str(conf)) def test_conftestcutdir_inplace_considered(testdir): conf = testdir.makeconftest("") conftest = PytestPluginManager() conftest_setinitial(conftest, [conf.dirpath()], confcutdir=conf.dirpath()) - l = conftest._getconftestmodules(conf.dirpath()) - assert len(l) == 1 - assert l[0].__file__.startswith(str(conf)) + values = conftest._getconftestmodules(conf.dirpath()) + assert len(values) == 1 + assert values[0].__file__.startswith(str(conf)) @pytest.mark.parametrize("name", 'test tests whatever .dotdir'.split()) |