1
0
python-sphinx-autodoc-typeh.../python-sphinx-autodoc-typehints-system-object.inv.patch
Matej Cepl ab323f08fc Accepting request 909937 from home:mcepl:branches:devel:languages:python
- Update to 1.12.0:
  - Dropped Python 3.5 support
  - Added the simplify_optional_unions config option
  - Fixed indentation of multiline strings
  - Changed formatting of None to point to the Python stdlib docs
  - Updated special dataclass handling

OBS-URL: https://build.opensuse.org/request/show/909937
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sphinx-autodoc-typehints?expand=0&rev=23
2021-08-03 09:50:38 +00:00

26 lines
844 B
Diff

---
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)