mirror of
https://github.com/python/cpython.git
synced 2025-10-10 00:43:41 +00:00
Issue #27380: For test_query on Mac, adjust one expected result.
This commit is contained in:
parent
65db8544bf
commit
40a46ad467
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
6 of 8 missing are ModuleName exceptions I don't know how to trigger.
|
||||||
"""
|
"""
|
||||||
from test.support import requires
|
from test.support import requires
|
||||||
|
import sys
|
||||||
from tkinter import Tk
|
from tkinter import Tk
|
||||||
import unittest
|
import unittest
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
@ -337,7 +338,8 @@ class HelpsourceGuiTest(unittest.TestCase):
|
||||||
Equal(dialog.entry.get(), '__test__')
|
Equal(dialog.entry.get(), '__test__')
|
||||||
Equal(dialog.path.get(), __file__)
|
Equal(dialog.path.get(), __file__)
|
||||||
dialog.button_ok.invoke()
|
dialog.button_ok.invoke()
|
||||||
Equal(dialog.result, ('__test__', __file__))
|
prefix = "file://" if sys.platform == 'darwin' else ''
|
||||||
|
Equal(dialog.result, ('__test__', prefix + __file__))
|
||||||
del dialog
|
del dialog
|
||||||
root.destroy()
|
root.destroy()
|
||||||
del root
|
del root
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue