diff options
author | Terry Jan Reedy <tjreedy@udel.edu> | 2016-07-06 01:51:56 (GMT) |
---|---|---|
committer | Terry Jan Reedy <tjreedy@udel.edu> | 2016-07-06 01:51:56 (GMT) |
commit | 9862b5194d5aa8f788d3fd38a3951d7d25d91352 (patch) | |
tree | 3877edc6ea11726dadf6b281d68e80e165592bb1 /Lib | |
parent | 5ce1b86b0e69c7518704caddf1e8fddece7f3d74 (diff) | |
download | cpython-9862b5194d5aa8f788d3fd38a3951d7d25d91352.zip cpython-9862b5194d5aa8f788d3fd38a3951d7d25d91352.tar.gz cpython-9862b5194d5aa8f788d3fd38a3951d7d25d91352.tar.bz2 |
Issue #27452: make command line idle-test> python test_help.py work.
__file__ is relative in this case.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/idlelib/idle_test/test_help.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/idlelib/idle_test/test_help.py b/Lib/idlelib/idle_test/test_help.py index cdded2a..2c68e23 100644 --- a/Lib/idlelib/idle_test/test_help.py +++ b/Lib/idlelib/idle_test/test_help.py @@ -16,7 +16,7 @@ class HelpFrameTest(unittest.TestCase): "By itself, this tests that file parsed without exception." cls.root = root = Tk() root.withdraw() - helpfile = join(abspath(dirname(dirname(__file__))), 'help.html') + helpfile = join(dirname(dirname(abspath(__file__))), 'help.html') cls.frame = help.HelpFrame(root, helpfile) @classmethod |