Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 35.2k
gh-54781: Move Lib/tkinter/test/test_ttk/ to Lib/test/test_ttk/#94070
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
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
98443640f60bef8ee5ffe67ea5c0e3ff9d578fc0cabccf79d941d382File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| import os.path | ||
| import unittest | ||
| from test import support | ||
| from test.support import import_helper | ||
| if support.check_sanitizer(address=True, memory=True): | ||
| raise unittest.SkipTest("Tests involving libX11 can SEGFAULT on ASAN/MSAN builds") | ||
| # Skip test if _tkinter wasn't built. | ||
| import_helper.import_module('_tkinter') | ||
| # Skip test if tk cannot be initialized. | ||
| support.requires('gui') | ||
| def load_tests(*args): | ||
| return support.load_package_tests(os.path.dirname(__file__), *args) | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| from . import load_tests | ||
| import unittest | ||
| unittest.main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| from . import load_tests | ||
| import unittest | ||
| unittest.main() |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| Rename test_tk to test_tkinter, and rename test_ttk_guionly to test_ttk. | ||
| Patch by Victor Stinner. |
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use just
loader.discover()?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copy/paste the code from test_asyncio, it works, so I didn't change it :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does
loader.discover()work with zipimport?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have no idea. If there is an issue, I suggest to fix all load_tests() functions of Lib/test/ in a separated PR.