下载 Scrapy 0.16 的源代码后,我尝试在我的 Macbook 上使用 ./bin/runtests.sh 运行测试。令人惊讶的是,测试失败了。它给出了这些结果:失败(跳过=46,失败=9,成功=887)。大家有遇到过这个问题吗?你如何解决它?
[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'