Scrapy, a fast high-level web crawling & scraping framework for Python.
fixed utils.signal tests broken in previous commit
Pablo Hoffmanbb2e0de7dae9
diff --git a/scrapy/tests/test_utils_signal.py b/scrapy/tests/test_utils_signal.pyindex 1a1534932..640174c57 100644--- a/scrapy/tests/test_utils_signal.py+++ b/scrapy/tests/test_utils_signal.py@@ -1,6 +1,6 @@-import unittest-+from twisted.trial import unittestfrom twisted.python import log as txlog+from twisted.python.failure import Failurefrom scrapy.xlib.pydispatch import dispatcherfrom scrapy.utils.signal import send_catch_log@@ -36,13 +36,10 @@ class SignalUtilsTest(unittest.TestCase):assert test_handler_check in handlers_calledassert log_received in handlers_calledself.assertEqual(result[0][0], test_handler_error)- self.assert_(isinstance(result[0][1], Exception))+ self.assert_(isinstance(result[0][1], Failure))self.assertEqual(result[1], (test_handler_check, "OK"))txlog.removeObserver(log_received)+ self.flushLoggedErrors()dispatcher.disconnect(test_handler_error, signal=test_signal)dispatcher.disconnect(test_handler_check, signal=test_signal)---if __name__ == "__main__":- unittest.main()