[Python-checkins] cpython: Issue #27380: For test_query on Mac, adjust one expected result.
terry.reedy
python-checkins at python.org
Wed Aug 10 13:16:41 EDT 2016
https://hg.python.org/cpython/rev/8f37d772f71f
changeset: 102607:8f37d772f71f
user: Terry Jan Reedy <tjreedy at udel.edu>
date: Wed Aug 10 13:16:26 2016 -0400
summary:
Issue #27380: For test_query on Mac, adjust one expected result.
files:
Lib/idlelib/idle_test/test_query.py | 4 +++-
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
--- a/Lib/idlelib/idle_test/test_query.py
+++ b/Lib/idlelib/idle_test/test_query.py
@@ -13,6 +13,7 @@
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 @@
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
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list