diff options
author | Zachary Ware <zachary.ware@gmail.com> | 2014-06-02 21:04:25 (GMT) |
---|---|---|
committer | Zachary Ware <zachary.ware@gmail.com> | 2014-06-02 21:04:25 (GMT) |
commit | e7e1375e5796263a9d7279dc247d4f6bb4243a46 (patch) | |
tree | 646df46424c5d67295a5310fece1278b964949a8 /Lib/test/test_ttk_guionly.py | |
parent | 2bc4d95bb67a0bcddec5b76e7f7b5d10b098aa49 (diff) | |
parent | 66f29284797c31190ad06554d9909d7ed8a894d1 (diff) | |
download | cpython-e7e1375e5796263a9d7279dc247d4f6bb4243a46.zip cpython-e7e1375e5796263a9d7279dc247d4f6bb4243a46.tar.gz cpython-e7e1375e5796263a9d7279dc247d4f6bb4243a46.tar.bz2 |
Issue #18492: Merge with 3.4
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 502b067..e7a654f 100644 --- a/Lib/test/test_ttk_guionly.py +++ b/Lib/test/test_ttk_guionly.py @@ -22,13 +22,7 @@ except TclError as msg: # assuming ttk is not available raise unittest.SkipTest("ttk not available: %s" % msg) -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(): try: support.run_unittest( *runtktests.get_tests(text=False, packages=['test_ttk'])) @@ -36,4 +30,4 @@ def test_main(enable_gui=False): get_tk_root().destroy() if __name__ == '__main__': - test_main(enable_gui=True) + test_main() |