@@ -232,7 +232,6 @@ def _hypothesis_test_wraps_coroutine(function: Any) -> bool:
232
232
class FixtureStripper :
233
233
"""Include additional Fixture, and then strip them"""
234
234
235
- REQUEST = "request"
236
235
EVENT_LOOP = "event_loop"
237
236
238
237
def __init__ (self , fixturedef : FixtureDef ) -> None :
@@ -330,15 +329,11 @@ def pytest_fixture_setup(
330
329
331
330
fixture_stripper = FixtureStripper (fixturedef )
332
331
fixture_stripper .add (FixtureStripper .EVENT_LOOP )
333
- fixture_stripper .add (FixtureStripper .REQUEST )
334
332
335
333
def wrapper (* args , ** kwargs ):
336
334
loop = fixture_stripper .get_and_strip_from (
337
335
FixtureStripper .EVENT_LOOP , kwargs
338
336
)
339
- request = fixture_stripper .get_and_strip_from (
340
- FixtureStripper .REQUEST , kwargs
341
- )
342
337
343
338
gen_obj = generator (* args , ** kwargs )
344
339
@@ -452,7 +447,7 @@ def pytest_runtest_setup(item: pytest.Item) -> None:
452
447
if "event_loop" in fixturenames :
453
448
fixturenames .remove ("event_loop" )
454
449
fixturenames .insert (0 , "event_loop" )
455
- obj = getattr (item , ' obj' , None )
450
+ obj = getattr (item , " obj" , None )
456
451
if (
457
452
item .get_closest_marker ("asyncio" ) is not None
458
453
and not getattr (obj , "hypothesis" , False )
0 commit comments