diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-01-04 10:09:57 -0600 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-01-04 10:09:57 -0600 |
commit | 0d43663dab3af4de18ab98fbdb33168e6e0e19cc (patch) | |
tree | d8403ae734ac03c1c80bba8cd1f390eec5400b4d /test_six.py | |
parent | 072edd6594784ef80e53a63502a2de84ea6f8392 (diff) | |
download | six-0d43663dab3af4de18ab98fbdb33168e6e0e19cc.tar.gz |
add mapping for ttk (fixes #49)
Diffstat (limited to 'test_six.py')
-rw-r--r-- | test_six.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/test_six.py b/test_six.py index db9b624..8815ee1 100644 --- a/test_six.py +++ b/test_six.py @@ -103,8 +103,11 @@ def test_move_items(item_name): except ImportError: if item_name == "winreg" and not sys.platform.startswith("win"): py.test.skip("Windows only module") - if item_name.startswith("tkinter") and not have_tkinter: - py.test.skip("requires tkinter") + if item_name.startswith("tkinter"): + if not have_tkinter: + py.test.skip("requires tkinter") + if item_name == "tkinter_ttk" and sys.version_info <= (2, 6): + py.test.skip("ttk only available on 2.7+") if item_name.startswith("dbm_gnu") and not have_gdbm: py.test.skip("requires gdbm") raise |