SHA256
1
0
forked from pool/python-Babel
python-Babel/pytest6.patch

14 lines
560 B
Diff

Index: Babel-2.8.0/conftest.py
===================================================================
--- Babel-2.8.0.orig/conftest.py
+++ Babel-2.8.0/conftest.py
@@ -8,4 +8,7 @@ babel_path = local(__file__).dirpath().j
def pytest_collect_file(path, parent):
if babel_path.common(path) == babel_path:
if path.ext == ".py":
- return DoctestModule(path, parent)
+ try:
+ return DoctestModule.from_parent(parent, fspath=path)
+ except AttributeError:
+ return DoctestModule(path, parent)