File tree Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Expand file tree Collapse file tree 4 files changed +11
-6
lines changed Original file line number Diff line number Diff line change 1+ ignore =
2+ N802
3+
14per-file-ignores =
25 src/pytest_twisted/__init__.py:F401
Original file line number Diff line number Diff line change 1515from twisted .python import failure
1616
1717if sys .version_info [0 ] == 3 :
18- from pytest_twisted .three import _async_pytest_fixture_setup , _async_pytest_pyfunc_call
18+ from pytest_twisted .three import (
19+ _async_pytest_fixture_setup ,
20+ _async_pytest_pyfunc_call ,
21+ )
1922elif sys .version_info [0 ] == 2 :
2023 from pytest_twisted .two import _async_pytest_pyfunc_call
2124
@@ -249,7 +252,6 @@ def _set_mark(o, mark):
249252
250253
251254def _marked_async_fixture (mark ):
252- print (pytest )
253255 @functools .wraps (pytest .fixture )
254256 @_optional_arguments ()
255257 def fixture (f , * args , ** kwargs ):
Original file line number Diff line number Diff line change 44@defer .inlineCallbacks
55def _async_pytest_fixture_setup (fixturedef , request , mark ):
66 """Setup an async or async yield fixture."""
7- from pytest_twisted .core import _create_async_yield_fixture_finalizer
7+ from pytest_twisted .core import (
8+ UnrecognizedCoroutineMarkError ,
9+ _create_async_yield_fixture_finalizer ,
10+ )
811
912 fixture_function = fixturedef .func
1013
Original file line number Diff line number Diff line change @@ -31,6 +31,3 @@ download=true
3131[testenv:linting]
3232deps =flake8
3333commands =flake8 setup.py src/pytest_twisted testing
34-
35- [flake8]
36- ignore =N802
You can’t perform that action at this time.
0 commit comments