commit be611a6ad6c7054c35e02571087950e133839592 Author: Beck Chen csybeck@gmail.com Date: Wed Jun 20 00:24:15 2012 +0800
Fixed test_skip_listener_unrecognized_type on windows.
This test case is included in stem.test.integ.descriptor.reader. Now it allows both "image/png" and "image/x-png" types. --- test/integ/descriptor/reader.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/test/integ/descriptor/reader.py b/test/integ/descriptor/reader.py index 152f839..9c793d3 100644 --- a/test/integ/descriptor/reader.py +++ b/test/integ/descriptor/reader.py @@ -403,7 +403,7 @@ class TestDescriptorReader(unittest.TestCase): skipped_path, skip_exception = skip_listener.results[0] self.assertEqual(test_path, skipped_path) self.assertTrue(isinstance(skip_exception, stem.descriptor.reader.UnrecognizedType)) - self.assertEqual(("image/png", None), skip_exception.mime_type) + self.assertTrue(skip_exception.mime_type in (("image/png", None), ("image/x-png", None))) finally: if os.path.exists(test_path): os.remove(test_path)
tor-commits@lists.torproject.org