From b77bce5c3dc5b2cd076d505415f72ea4cc821478 Mon Sep 17 00:00:00 2001 From: Christopher Chavez Date: Mon, 15 May 2023 21:22:53 -0500 Subject: [PATCH] gh-104461: Run tkinter test_configure_screen on X11 only (GH-104462) (cherry picked from commit fdafdc235e74f2f4fedc1f745bf8b90141daa162) Co-authored-by: Christopher Chavez --- Lib/tkinter/test/test_tkinter/test_widgets.py | 2 ++ .../next/Tests/2023-05-14-03-00-00.gh-issue-104461.Rmex11.rst | 3 +++ 2 files changed, 5 insertions(+) create mode 100644 Misc/NEWS.d/next/Tests/2023-05-14-03-00-00.gh-issue-104461.Rmex11.rst diff --git a/Lib/tkinter/test/test_tkinter/test_widgets.py b/Lib/tkinter/test/test_tkinter/test_widgets.py index a756276ec76966..f0149153512fb5 100644 --- a/Lib/tkinter/test/test_tkinter/test_widgets.py +++ b/Lib/tkinter/test/test_tkinter/test_widgets.py @@ -77,6 +77,8 @@ def test_configure_menu(self): def test_configure_screen(self): widget = self.create() + if widget._windowingsystem != 'x11': + self.skipTest('Not using Tk for X11') self.assertEqual(widget['screen'], '') try: display = os.environ['DISPLAY'] diff --git a/Misc/NEWS.d/next/Tests/2023-05-14-03-00-00.gh-issue-104461.Rmex11.rst b/Misc/NEWS.d/next/Tests/2023-05-14-03-00-00.gh-issue-104461.Rmex11.rst new file mode 100644 index 00000000000000..ae69f623e94558 --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2023-05-14-03-00-00.gh-issue-104461.Rmex11.rst @@ -0,0 +1,3 @@ +Run test_configure_screen on X11 only, since the ``DISPLAY`` +environment variable and ``-screen`` option for toplevels +are not useful on Tk for Win32 or Aqua. pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy