File: test-fixes

package info (click to toggle)
sphinx-autodoc-typehints 3.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 392 kB
  • sloc: python: 2,386; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 577 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Author: Michael R. Crusoe <crusoe@debian.org>
Description: use locally packaged Python3 docs for the tests
Forwarded: not-needed
--- sphinx-autodoc-typehints.orig/tests/conftest.py
+++ sphinx-autodoc-typehints/tests/conftest.py
@@ -25,7 +25,7 @@
     if inv_dict is not None:
         return Inventory(inv_dict)
 
-    url = f"https://docs.python.org/{sys.version_info.major}.{sys.version_info.minor}/objects.inv"
+    url = "file:///usr/share/doc/python3/html/objects.inv"
     inv = Inventory(url=url)
     pytestconfig.cache.set(cache_path, inv.json_dict())
     return inv