]> granicus.if.org Git - python/commit
bpo-31028: Fix test_pydoc when run directly (#2864) (#2911)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 27 Jul 2017 16:05:44 +0000 (18:05 +0200)
committerGitHub <noreply@github.com>
Thu, 27 Jul 2017 16:05:44 +0000 (18:05 +0200)
commitfd6736d17901e539d6a9ddf50a9927a3a97a9c06
treeda075ee46ab24d5cd601ae1f20becdae86aa4aa1
parent29094cec7cddd561cac16ce93443ca72d740de4d
bpo-31028: Fix test_pydoc when run directly (#2864) (#2911)

* 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 fd46561167af6cd697191dd7ebb8c2fef5ad6493)
Lib/test/test_pydoc.py