2
下载Scrapy 0.16源代码后,我试图在我的Macbook上使用./bin/runtests.sh运行测试。令人惊讶的是,测试失败了。它给出了这些结果:FAILED(跳过= 46,失败= 9,成功= 887)。 有没有人遇到过这个问题?你如何解决它?如何修复scrapy源代码测试失败:FifoDiskQueue
[FAIL]
Traceback (most recent call last):
File "/Users/lws/Downloads/scrapy-scrapy-7b5310d/scrapy/tests/test_utils_queue.py", line 128, in test_close_open
self.assertEqual(q.pop(), 'c')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/trial/unittest.py", line 270, in assertEqual
% (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = None
b = 'c'
[FAIL]
Traceback (most recent call last):
File "/Users/lws/Downloads/scrapy-scrapy-7b5310d/scrapy/tests/test_utils_queue.py", line 128, in test_close_open
self.assertEqual(q.pop(), 'c')
File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/twisted/trial/unittest.py", line 270, in assertEqual
% (msg, pformat(first), pformat(second)))
twisted.trial.unittest.FailTest: not equal:
a = 'e'
b = 'c'
现在将合并请求。 –