diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2016-11-20 18:59:15 -0200 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2016-11-20 18:59:15 -0200 |
commit | 1eb5a690d4c416962b6ccf46618367f68e54ea89 (patch) | |
tree | 6d9b8c722c6d78747f5c617fcfd1145c61065558 /testing/test_nose.py | |
parent | cbf261c74ef1713f88ac56f2c382f096b252dedb (diff) | |
download | pytest-1eb5a690d4c416962b6ccf46618367f68e54ea89.tar.gz |
Fix flake8 E305 and E306 errors
These errors started to appear with flake8-3.1.1, while they don't appear with
version 3.1.0 (weird).
Diffstat (limited to 'testing/test_nose.py')
-rw-r--r-- | testing/test_nose.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/testing/test_nose.py b/testing/test_nose.py index a5162381e..f54246111 100644 --- a/testing/test_nose.py +++ b/testing/test_nose.py @@ -25,18 +25,22 @@ def test_nose_setup(testdir): def test_setup_func_with_setup_decorator(): from _pytest.nose import call_optional l = [] + class A: @pytest.fixture(autouse=True) def f(self): l.append(1) + call_optional(A(), "f") assert not l def test_setup_func_not_callable(): from _pytest.nose import call_optional + class A: f = 1 + call_optional(A(), "f") def test_nose_setup_func(testdir): |