diff options
author | R. David Murray <rdmurray@bitdance.com> | 2009-03-31 18:32:17 +0000 |
---|---|---|
committer | R. David Murray <rdmurray@bitdance.com> | 2009-03-31 18:32:17 +0000 |
commit | 42753be089fa7983af017d4b56972072393e9f3e (patch) | |
tree | 722f9adb2828bfa3d6b2ca9ba76f36815a4a3599 /Lib/test/test_ttk_textonly.py | |
parent | 4fc0e596a28e4d203c59e94ab4a0133f53dfb527 (diff) | |
download | cpython-42753be089fa7983af017d4b56972072393e9f3e.tar.gz |
A few more test skips via import_module, and change import_module to
return the error message produced by importlib, so that if an import
in the package whose import is being wrapped is what failed the skip
message will contain the name of that module instead of the name of the
wrapped module. Also fixed formatting of some previous comments.
Diffstat (limited to 'Lib/test/test_ttk_textonly.py')
-rw-r--r-- | Lib/test/test_ttk_textonly.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_ttk_textonly.py b/Lib/test/test_ttk_textonly.py index e7d9c00783..dde1b3551d 100644 --- a/Lib/test/test_ttk_textonly.py +++ b/Lib/test/test_ttk_textonly.py @@ -2,6 +2,9 @@ import os import sys from test import test_support +# Skip this test if _tkinter does not exist. +test_support.import_module('_tkinter') + this_dir = os.path.dirname(os.path.abspath(__file__)) lib_tk_test = os.path.abspath(os.path.join(this_dir, '..', 'lib-tk', 'test')) if lib_tk_test not in sys.path: |