15
0
forked from pool/python-Babel

Accepting request 830007 from home:mcalabkova:branches:devel:languages:python

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
This commit is contained in:
Tomáš Chvátal
2020-08-27 14:09:58 +00:00
committed by Git OBS Bridge
parent 14a57cca27
commit 4d736bc6df
3 changed files with 21 additions and 0 deletions

13
pytest6.patch Normal file
View File

@@ -0,0 +1,13 @@
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)