File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -36,13 +36,13 @@ def pytest_configure(config):
3636def pytest_pycollect_makeitem (collector , name , obj ):
3737 """A pytest hook to collect asyncio coroutines."""
3838 if collector .funcnamefilter (name ) and _is_coroutine (obj ):
39- item = pytest .Function ( name , parent = collector )
39+ item = pytest .Function . from_parent ( collector , name = name )
4040
4141 # Due to how pytest test collection works, module-level pytestmarks
4242 # are applied after the collection step. Since this is the collection
4343 # step, we look ourselves.
4444 transfer_markers (obj , item .cls , item .module )
45- item = pytest .Function ( name , parent = collector ) # To reload keywords.
45+ item = pytest .Function . from_parent ( collector , name = name ) # To reload keywords.
4646
4747 if 'asyncio' in item .keywords :
4848 return list (collector ._genfunctions (name , obj ))
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def find_version():
4040 "Framework :: Pytest" ,
4141 ],
4242 python_requires = ">= 3.5" ,
43- install_requires = ["pytest >= 3.6.0, < 5.4.0" ],
43+ install_requires = ["pytest >= 5.4.0" ],
4444 extras_require = {
4545 ':python_version == "3.5"' : "async_generator >= 1.3" ,
4646 "testing" : [
You can’t perform that action at this time.
0 commit comments