forked from pool/python-Babel
OBS-URL: https://build.opensuse.org/request/show/830007 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-Babel?expand=0&rev=51
14 lines
560 B
Diff
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)
|