diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-06-02 16:01:16 -0500 |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-06-02 16:01:16 -0500 |
commit | 9ce635f7bde6a0e61737af87a3546de6fe55880a (patch) | |
tree | ca426cdaa64cc850b66ae9436250793e6cc7d6b6 /Lib/test/test_ttk_guionly.py | |
parent | f94686f6b887bd5b50ef60d5615f00e0fd8520da (diff) | |
download | cpython-git-9ce635f7bde6a0e61737af87a3546de6fe55880a.tar.gz |
Issue #18492: Allow all resources when tests are not run by regrtest.py.
This changeset also includes cleanup allowed by this behavior change.
Diffstat (limited to 'Lib/test/test_ttk_guionly.py')
-rw-r--r-- | Lib/test/test_ttk_guionly.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/Lib/test/test_ttk_guionly.py b/Lib/test/test_ttk_guionly.py index 47ddefb11c..caa69303cc 100644 --- a/Lib/test/test_ttk_guionly.py +++ b/Lib/test/test_ttk_guionly.py @@ -22,13 +22,7 @@ except TclError, msg: # assuming ttk is not available raise unittest.SkipTest("ttk not available: %s" % msg) -def test_main(enable_gui=False): - if enable_gui: - if test_support.use_resources is None: - test_support.use_resources = ['gui'] - elif 'gui' not in test_support.use_resources: - test_support.use_resources.append('gui') - +def test_main(): with test_support.DirsOnSysPath(lib_tk_test): from test_ttk.support import get_tk_root try: @@ -38,4 +32,4 @@ def test_main(enable_gui=False): get_tk_root().destroy() if __name__ == '__main__': - test_main(enable_gui=True) + test_main() |