diff options
author | Marc Abramowitz <marc@marc-abramowitz.com> | 2013-12-08 22:09:13 -0800 |
---|---|---|
committer | Marc Abramowitz <marc@marc-abramowitz.com> | 2013-12-08 22:09:13 -0800 |
commit | b1c37a84835a29375d721080b6b28990b5464c74 (patch) | |
tree | b48905fe68c20f4b1769448495791ee5b5e8dde1 /test_six.py | |
parent | 18c431dbc11eaa83a78ea15dac848fd970d9222c (diff) | |
download | six-b1c37a84835a29375d721080b6b28990b5464c74.tar.gz |
Add tests for `from six.moves.queue import Queue` and `from
six.moves.configparser import ConfigParser`
Diffstat (limited to 'test_six.py')
-rw-r--r-- | test_six.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test_six.py b/test_six.py index b4d1d0e..6ca57ed 100644 --- a/test_six.py +++ b/test_six.py @@ -142,6 +142,16 @@ def test_move_items_urllib_robotparser(item_name): getattr(six.moves.urllib.robotparser, item_name) +def test_from_six_moves_queue_import_Queue(): + from six.moves.queue import Queue + assert isinstance(Queue, types.ClassType) + + +def test_from_six_moves_configparser_import_ConfigParser(): + from six.moves.configparser import ConfigParser + assert isinstance(ConfigParser, types.ClassType) + + def test_filter(): from six.moves import filter f = filter(lambda x: x % 2, range(10)) |