0
我编写的Python 3.6和运行测试,但其中2失败:为什么异步测试在编译的Python 3.6中失败?
======================================================================
FAIL: test_handle_expt (test.test_asyncore.TestAPI_UseIPv4Poll)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/andrei/Python/cpython/Lib/test/test_asyncore.py", line 676, in test_handle_expt
self.loop_waiting_for_flag(client)
File "/Users/andrei/Python/cpython/Lib/test/test_asyncore.py", line 516, in loop_waiting_for_flag
self.fail("flag not set")
AssertionError: flag not set
======================================================================
FAIL: test_handle_expt (test.test_asyncore.TestAPI_UseIPv6Poll)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/andrei/Python/cpython/Lib/test/test_asyncore.py", line 676, in test_handle_expt
self.loop_waiting_for_flag(client)
File "/Users/andrei/Python/cpython/Lib/test/test_asyncore.py", line 516, in loop_waiting_for_flag
self.fail("flag not set")
AssertionError: flag not set
----------------------------------------------------------------------
Ran 101 tests in 21.140s
FAILED (failures=2, skipped=6)
test test_asyncore failed
可以去错了怎么办?
您正在使用Mac,对吧? –
是的,刚刚看到票http://bugs.python.org/issue28087 – Andrei
正在写一个答案:-)。顺便说一下,通过在扫描相关问题后在bugs.python.org上创建问题,您有更好的机会解决您的问题。 –