@@ -269,7 +269,6 @@ def get_fixture_params(item):
269269@pytest .mark .trylast
270270def pytest_collection_modifyitems (session , config , items ):
271271 """Move shutdown tests after normal tests."""
272-
273272 def enumerate_reversed (sequence ):
274273 # reversed(enumerate(sequence)), doesn't work
275274 # here a little generator for that
@@ -367,7 +366,6 @@ def run_until_complete(loop, future_like):
367366
368367def wrap_coroutine (func , event_loop , before_test ):
369368 """Return a sync wrapper around an async function to be executed in the event loop."""
370-
371369 @functools .wraps (func )
372370 def inner (** kwargs ):
373371 if before_test is not None :
@@ -381,7 +379,6 @@ def inner(**kwargs):
381379
382380def wrap_func (func , event_loop , before_test ):
383381 """Return a wrapper that runs the test in a separate thread while driving the event loop."""
384-
385382 @functools .wraps (func )
386383 def inner (** kwargs ):
387384 if before_test is not None :
@@ -424,7 +421,6 @@ def inner(**kwargs):
424421
425422def wrap_generator_fscope (func , event_loop , on_shutdown ):
426423 """Return wrappers for the normal test and the teardown test for a generator function."""
427-
428424 @functools .wraps (func )
429425 def inner (** kwargs ):
430426 gen = func (** kwargs )
@@ -479,7 +475,6 @@ def inner(**kwargs):
479475
480476def wrap_asyncgen_fscope (func , event_loop , on_shutdown ):
481477 """Return wrappers for the normal test and the teardown test for an async gen function."""
482-
483478 @functools .wraps (func )
484479 def inner (** kwargs ):
485480 agen = func (** kwargs )
0 commit comments