Skip to content

Commit

Permalink
gh-104461: Run tkinter test_configure_screen on X11 only (GH-104462)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrstphrchvz authored May 16, 2023
1 parent 456d566 commit fdafdc2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_tkinter/test_widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,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']
Expand Down
Original file line number Diff line number Diff line change
@@ -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.

0 comments on commit fdafdc2

Please sign in to comment.