Skip to content

[2.7] bpo-31028: Fix test_pydoc when run directly (#2864) #2911

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

Merged
merged 1 commit into from
Jul 27, 2017
Merged

[2.7] bpo-31028: Fix test_pydoc when run directly (#2864) #2911

merged 1 commit into from
Jul 27, 2017

Conversation

vstinner
Copy link
Member

@vstinner vstinner commented Jul 27, 2017

  • bpo-31028: Fix test_pydoc when run directly

Fix get_pydoc_link() of test_pydoc to fix "./python
Lib/test/test_pydoc.py": get the absolute path to file to prevent
relative directories.

  • Use realpath() instead of abspath()

(cherry picked from commit fd46561)

https://bugs.python.org/issue31028

* bpo-31028: Fix test_pydoc when run directly

Fix get_pydoc_link() of test_pydoc to fix "./python
Lib/test/test_pydoc.py": get the absolute path to __file__ to prevent
relative directories.

* Use realpath() instead of abspath()

(cherry picked from commit fd46561)
@vstinner vstinner merged commit fd6736d into python:2.7 Jul 27, 2017
@vstinner vstinner deleted the pydoc_basedir27 branch July 27, 2017 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants