为什么 asyncore 测试在编译的 Python 3.6 中失败?
Why do asyncore tests fail in compiled Python 3.6?
我编译了 Python 3.6 和 运行 测试,但其中 2 个失败了:
======================================================================
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
那里会出什么问题?
这已在错误跟踪器上提出两次:
- Issue 28456 -- Test failures under macOS 10.12 Sierra
- Issue 28087 -- macOS 12 poll syscall returns prematurely
第一个作为第二个的欺骗而关闭,第二个尚未修复。简而言之,the poll()
system function is apparently broken in Sierra。您需要等待他们完成修复。在此之前,忽略这些故障是安全的。
我编译了 Python 3.6 和 运行 测试,但其中 2 个失败了:
======================================================================
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
那里会出什么问题?
这已在错误跟踪器上提出两次:
- Issue 28456 -- Test failures under macOS 10.12 Sierra
- Issue 28087 -- macOS 12 poll syscall returns prematurely
第一个作为第二个的欺骗而关闭,第二个尚未修复。简而言之,the poll()
system function is apparently broken in Sierra。您需要等待他们完成修复。在此之前,忽略这些故障是安全的。