]> granicus.if.org Git - python/commitdiff
Issue #27452: make command line idle-test> python test_help.py work.
authorTerry Jan Reedy <tjreedy@udel.edu>
Wed, 6 Jul 2016 01:51:56 +0000 (21:51 -0400)
committerTerry Jan Reedy <tjreedy@udel.edu>
Wed, 6 Jul 2016 01:51:56 +0000 (21:51 -0400)
__file__ is relative in this case.

Lib/idlelib/idle_test/test_help.py

index cdded2ac791cef02013f1ddde8479dbf1160eea5..2c68e23b328c2426351674a7d56bf7e4b88fda56 100644 (file)
@@ -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