2017-02-25 71 views
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 

可以去錯了怎麼辦?

+0

您正在使用Mac,對吧? –

+1

是的,剛剛看到票http://bugs.python.org/issue28087 – Andrei

+0

正在寫一個答案:-)。順便說一下,通過在掃描相關問題後在bugs.python.org上創建問題,您有更好的機會解決您的問題。 –

回答