FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-66113: Add unit tests for Turtle guionly by StanFromIreland · Pull Request #129532 · python/cpython · GitHub

Repository navigation

Prev Previous commit
Next Next commit
Exit if no GUI
  • Loading branch information
StanFromIreland committed Jan 31, 2025
commit c9b1cfc5c6f528a1c56a283396880e2cbb65b1de
5 changes: 5 additions & 0 deletions Lib/test/test_turtle_gui.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
from test.support import import_helper
from test.support import os_helper

# Prevent execution of GUI-dependent tests
if os.environ.get('DISPLAY', '') == '':
print("No display found. Skipping GUI tests.")
exit(0)

turtle = import_helper.import_module('turtle')


Expand Down

Back | FazBrowse Home | New Git URL