diff options
author | Andras Tim <andras.tim@gmail.com> | 2017-07-17 01:25:10 +0200 |
---|---|---|
committer | Andras Tim <andras.tim@gmail.com> | 2017-07-17 01:44:23 +0200 |
commit | b49e8baab3759d70d4af138d76cf28321f3e7807 (patch) | |
tree | 12fcb534e7bf171b072e0b9caf746fca912d7ed9 /testing | |
parent | 15610289ac720bbdd90c5b69b6a5ef6405a2c4ab (diff) | |
download | pytest-b49e8baab3759d70d4af138d76cf28321f3e7807.tar.gz |
Fixed E731 flake8 errors
do not assign a lambda expression, use a def
Diffstat (limited to 'testing')
-rw-r--r-- | testing/test_session.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/testing/test_session.py b/testing/test_session.py index 39a9769f1..f9eb95f3b 100644 --- a/testing/test_session.py +++ b/testing/test_session.py @@ -22,7 +22,10 @@ class SessionTests(object): assert len(skipped) == 0 assert len(passed) == 1 assert len(failed) == 3 - end = lambda x: x.nodeid.split("::")[-1] + + def end(x): + return x.nodeid.split("::")[-1] + assert end(failed[0]) == "test_one_one" assert end(failed[1]) == "test_other" itemstarted = reprec.getcalls("pytest_itemcollected") |