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):
36
36
def pytest_pycollect_makeitem (collector , name , obj ):
37
37
"""A pytest hook to collect asyncio coroutines."""
38
38
if collector .funcnamefilter (name ) and _is_coroutine (obj ):
39
- item = pytest .Function ( name , parent = collector )
39
+ item = pytest .Function . from_parent ( collector , name = name )
40
40
41
41
# Due to how pytest test collection works, module-level pytestmarks
42
42
# are applied after the collection step. Since this is the collection
43
43
# step, we look ourselves.
44
44
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.
46
46
47
47
if 'asyncio' in item .keywords :
48
48
return list (collector ._genfunctions (name , obj ))
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ def find_version():
40
40
"Framework :: Pytest" ,
41
41
],
42
42
python_requires = ">= 3.5" ,
43
- install_requires = ["pytest >= 3.6.0, < 5.4.0" ],
43
+ install_requires = ["pytest >= 5.4.0" ],
44
44
extras_require = {
45
45
':python_version == "3.5"' : "async_generator >= 1.3" ,
46
46
"testing" : [
You can’t perform that action at this time.
0 commit comments