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 | 288d09243181faab94ce1f946804b9d14ec338a0 (patch) | |
tree | d8403ae734ac03c1c80bba8cd1f390eec5400b4d /test_six.py | |
parent | 4c5855649f1bd1a7c85896d7587589abd80a1804 (diff) | |
download | six-git-288d09243181faab94ce1f946804b9d14ec338a0.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 |