summaryrefslogtreecommitdiffstats
path: root/Lib/idlelib
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2016-08-10 17:16:26 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2016-08-10 17:16:26 (GMT)
commit40a46ad46776515d7f0c3ac08cd6ac081058ece0 (patch)
tree8ec44b65763d9911cf113f093f923e98213906fc /Lib/idlelib
parent65db8544bf2ae83e181d407d23600e08f2b99249 (diff)
downloadcpython-40a46ad46776515d7f0c3ac08cd6ac081058ece0.zip
cpython-40a46ad46776515d7f0c3ac08cd6ac081058ece0.tar.gz
cpython-40a46ad46776515d7f0c3ac08cd6ac081058ece0.tar.bz2
Issue #27380: For test_query on Mac, adjust one expected result.
Diffstat (limited to 'Lib/idlelib')
-rw-r--r--Lib/idlelib/idle_test/test_query.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/idlelib/idle_test/test_query.py b/Lib/idlelib/idle_test/test_query.py
index 584cd88..e9ed694 100644
--- a/Lib/idlelib/idle_test/test_query.py
+++ b/Lib/idlelib/idle_test/test_query.py
@@ -13,6 +13,7 @@ Coverage: 94% (100% for Query and SectionName).
6 of 8 missing are ModuleName exceptions I don't know how to trigger.
"""
from test.support import requires
+import sys
from tkinter import Tk
import unittest
from unittest import mock
@@ -337,7 +338,8 @@ class HelpsourceGuiTest(unittest.TestCase):
Equal(dialog.entry.get(), '__test__')
Equal(dialog.path.get(), __file__)
dialog.button_ok.invoke()
- Equal(dialog.result, ('__test__', __file__))
+ prefix = "file://" if sys.platform == 'darwin' else ''
+ Equal(dialog.result, ('__test__', prefix + __file__))
del dialog
root.destroy()
del root