-
-
Notifications
You must be signed in to change notification settings - Fork 30.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gh-108303: Move all pydoc
related files to test_pydoc
#114506
Conversation
Very strange, why windows build fails. I will investigate. |
Tell me if you need help to investigate. |
test_pydoc is failing! |
yes, this is expected. I am still debugging :( |
I will convert to draft, so it will be clear that this is a WIP. |
Try: |
Also, there are now merge conflicts. |
No, that's not the case :) I am trying to debug the initial Windows failure:
The problem is that I cannot reproduce it locally on my macos. |
5d78f9f
to
24e087b
Compare
You should update pydoc as well: diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 17f7346e5c..6d145abda9 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -552,7 +552,7 @@ def getdocloc(self, object, basedir=sysconfig.get_path('stdlib')):
'_thread', 'zipimport') or
(file.startswith(basedir) and
not file.startswith(os.path.join(basedir, 'site-packages')))) and
- object.__name__ not in ('xml.etree', 'test.pydoc_mod')):
+ object.__name__ not in ('xml.etree', 'test.test_pydoc.pydoc_mod')):
if docloc.startswith(("http://", "https://")):
docloc = "{}/{}.html".format(docloc.rstrip("/"), object.__name__.lower())
else:
|
@vstinner thanks a lot, your suggestion about |
Sorry, @sobolevn and @vstinner, I could not cleanly backport this to
|
Sorry, @sobolevn and @vstinner, I could not cleanly backport this to
|
Merged. I just edited the commit message. Oh, sorry, I forgot that you can now merge changes by yourself! Oops. Well, sadly, automated backports fail as usual. Can you try to backport them manually? |
Will do! |
…t_pydoc` package (python#114506)
GH-115501 is a backport of this pull request to the 3.11 branch. |
GH-115502 is a backport of this pull request to the 3.12 branch. |
I hope that this will be one of the latest commits to this issue! 🎉
There are only a couple of things left to do. Most files were cleaned up.
The change itself is rather simple.