【问题标题】:Why do asyncore tests fail in compiled Python 3.6?为什么 asyncore 测试在编译的 Python 3.6 中失败?
【发布时间】:2017-02-25 19:14:40
【问题描述】:

我已经编译了 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

那里会出什么问题?

【问题讨论】:

  • 你用的是 Mac,对吧?
  • 是的,刚看到票bugs.python.org/issue28087
  • 正在写一个答案:-)。顺便说一句,在扫描相关问题后,通过在 bugs.python.org 上创建问题,您更有可能解决问题。
  • 星期六有点死,我没有得到任何回应。在这里——4分钟后:-D

标签: python python-3.x macos-sierra asyncore


【解决方案1】:

这已经在错误跟踪器上提出了两次:

第一个因欺骗第二个而关闭,第二个尚未修复。简而言之,the poll() system function 显然是broken in Sierra。您需要等待他们完成修复它。在此之前,忽略这些故障是安全的。

【讨论】:

    猜你喜欢
    • 2019-02-03
    • 2013-05-14
    • 2018-04-04
    • 2016-08-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-05-31
    相关资源
    最近更新 更多