]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
test_guess_all_types(): Use a more robust test for checking that
authorBarry Warsaw <barry@python.org>
Sun, 23 Nov 2003 16:21:55 +0000 (16:21 +0000)
committerBarry Warsaw <barry@python.org>
Sun, 23 Nov 2003 16:21:55 +0000 (16:21 +0000)
commitceca5d29243cae41f5304fa16bf54b7258f6ad42
tree34035b0254f88c985ffac44087d0ae6ddc0b0080
parent49ba4c39c49ff6b1db666e6c90365fc1361c4a64
test_guess_all_types(): Use a more robust test for checking that
guess_all_extensions() returns (at least) what we expect.  As Jeff
Epler suggests in

http://mail.python.org/pipermail/python-dev/2003-September/038264.html

We use a set to test the results.  This fixes the test when
test_urllib2 is run before test_mimetypes.
Lib/test/test_mimetypes.py