Skip to content

Commit 408a9ce

Browse files
committed
simplify marking
1 parent 25fa4aa commit 408a9ce

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

pytest_twisted.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,13 +141,9 @@ def fixture(*args, **kwargs):
141141
if scope != 'function':
142142
raise AsyncFixtureUnsupportedScopeError.from_scope(scope=scope)
143143

144-
def _mark(f):
145-
setattr(f, _mark_attribute_name, mark)
146-
147-
return f
148-
149144
def decorator(f):
150-
result = pytest.fixture(*args, **kwargs)(_mark(f))
145+
setattr(f, _mark_attribute_name, mark)
146+
result = pytest.fixture(*args, **kwargs)(f)
151147

152148
return result
153149

0 commit comments

Comments
 (0)