mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #18492: Allow all resources when tests are not run by regrtest.py.
This changeset also includes cleanup allowed by this behavior change.
This commit is contained in:
parent
8dd49fe09f
commit
66f2928479
14 changed files with 37 additions and 59 deletions
|
@ -10,15 +10,9 @@ support.requires('gui')
|
|||
|
||||
from tkinter.test import runtktests
|
||||
|
||||
def test_main(enable_gui=False):
|
||||
if enable_gui:
|
||||
if support.use_resources is None:
|
||||
support.use_resources = ['gui']
|
||||
elif 'gui' not in support.use_resources:
|
||||
support.use_resources.append('gui')
|
||||
|
||||
def test_main():
|
||||
support.run_unittest(
|
||||
*runtktests.get_tests(text=False, packages=['test_tkinter']))
|
||||
|
||||
if __name__ == '__main__':
|
||||
test_main(enable_gui=True)
|
||||
test_main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue