不完整的抽象类不再记录错误
作者: Dreamsorcerer创建于 2025年6月20日更新于 2026年9月22日
标签topic: collectiontype: regression
我们有一个测试在aiohttp:
def 测试 testcase no app ()
testdir: pytest. (英语). Testdir, 环: asyncio. AbstractEventLoop (英语).
) - > 时间 无:
testdir.makepy文件 () (中文(简体) ).
"" "" ""
从 aiohttp.test utils 导入 AioHTTP TestCase
类无效的TestCase( AioHTTP TestCase) :
def 测试 noop( 自 ) - > 无:
通过
"" "" ""
(中文(简体) ).
结果 = testdir.runpytest ()
resect.stdout.fnmatch lines (["*TypeError *"]) (中文(简体) ).这在8.1.1之后的某个时候就开始失败了。
该日志似乎成功运行,而不是出错.
测试输出 :
FAILED 测试/ test test utils.py:: test testcase no app - 失败: nommatch: '* TypeError*'
和 : 'QQ测试会话开始 {\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢?
和:"平面达文-Python 3.11.9,pytest-8.4.1,插座-1.6.0"
和:"编码:3.2.0(失效,模式:壁时间,定时器 分辨率:41.7ns)".
和 rootdir : / private/ var/ solders/y6/nj790rtn62lfktb1sh 79hc000gn/T/pytest-of-runner/pytest-0/popen-gw1/test-testcase no app0) 相机 相机 相机
和:"插件:xdist-3.7.0,cov-6.2.1,模拟-3.14.1,codspeed-3.2.0".
和:"收集了0件物品"
以及: '' '' '' '' '' '' '''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
和 : '在0.01s 没有进行测试 {\fn黑体\fs22\bord1\shad0\3aHBE\4aH00\fscx67\fscy66\2cHFFFFFF\3cH808080}你觉得呢?
仍然无法比对 : '* TypeError *'内容来源: pytest-dev/pytest