Skip to content

Commit 5125acb

Browse files
committed
yup
1 parent f1953cd commit 5125acb

File tree

4 files changed

+11
-6
lines changed

4 files changed

+11
-6
lines changed

.flake8

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
ignore =
2+
N802
3+
14
per-file-ignores =
25
src/pytest_twisted/__init__.py:F401

src/pytest_twisted/core.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@
1515
from twisted.python import failure
1616

1717
if 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+
)
1922
elif 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

251254
def _marked_async_fixture(mark):
252-
print(pytest)
253255
@functools.wraps(pytest.fixture)
254256
@_optional_arguments()
255257
def fixture(f, *args, **kwargs):

src/pytest_twisted/three.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
@defer.inlineCallbacks
55
def _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

tox.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,3 @@ download=true
3131
[testenv:linting]
3232
deps=flake8
3333
commands=flake8 setup.py src/pytest_twisted testing
34-
35-
[flake8]
36-
ignore=N802

0 commit comments

Comments
 (0)