File python-sphinx-autodoc-typehints-system-object.inv.patch of Package python-sphinx-autodoc-typehints

---
 tests/conftest.py |   12 ++----------
 1 file changed, 2 insertions(+), 10 deletions(-)

--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -14,16 +14,8 @@ collect_ignore = ['roots']
 
 @pytest.fixture(scope='session')
 def inv(pytestconfig):
-    cache_path = 'python{v.major}.{v.minor}/objects.inv'.format(v=sys.version_info)
-    inv_dict = pytestconfig.cache.get(cache_path, None)
-    if inv_dict is not None:
-        return Inventory(inv_dict)
-
-    print("Downloading objects.inv")
-    url = 'https://docs.python.org/{v.major}.{v.minor}/objects.inv'.format(v=sys.version_info)
-    inv = Inventory(url=url)
-    pytestconfig.cache.set(cache_path, inv.json_dict())
-    return inv
+    inv_dict = '/usr/share/doc/packages/python@PYTHON_VERSION@/html/objects.inv'
+    return Inventory(inv_dict)
 
 
 @pytest.fixture(autouse=True)
openSUSE Build Service is sponsored by