Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gh-104461: Run test_configure_screen on X11 only #104462

Merged
merged 3 commits into from
May 16, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.