Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/mongodb/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.7.2在asyncio.run()关闭期间从未处理的异常生成期间测试失败_Python_Python 3.7 - Fatal编程技术网

Python 3.7.2在asyncio.run()关闭期间从未处理的异常生成期间测试失败

Python 3.7.2在asyncio.run()关闭期间从未处理的异常生成期间测试失败,python,python-3.7,Python,Python 3.7,我试图在Ubuntu 18.04 Docker容器中构建一个优化的构建(--启用优化和--使用lto)。在这个构建过程中,测试(特别是看起来像test\u sys\u settrace)失败 asyncio.run()关闭期间未处理的异常 任务:虽然我仍然没有一个好的答案来解释为什么在Python3.7的构建中会出现这种情况,但我可以报告说,这个问题似乎已经解决了。所使用的Dockerfile和install_python.sh基本上与问题中的相同,只是标记改为3.8.1 因此,当在ubuntu

我试图在Ubuntu 18.04 Docker容器中构建一个优化的构建(
--启用优化
--使用lto
)。在这个构建过程中,测试(特别是看起来像
test\u sys\u settrace
)失败

asyncio.run()关闭期间未处理的异常
任务:虽然我仍然没有一个好的答案来解释为什么在Python3.7的构建中会出现这种情况,但我可以报告说,这个问题似乎已经解决了。所使用的
Dockerfile
install_python.sh
基本上与问题中的相同,只是标记改为
3.8.1

因此,当在
ubuntu:bionic
Docker图像中构建时,测试报告成功。问题中的
运行时错误已解决

0:00:08 load avg: 6.49 [ 92/423] test_docxmlrpc passed
0:00:08 load avg: 6.49 [ 93/423] test_pickletools passed
0:00:08 load avg: 6.49 [ 94/423] test_contextlib_async passed
Task was destroyed but it is pending!
task: <Task pending name='Task-9' coro=<<async_generator_athrow without __name__>()>>
Task was destroyed but it is pending!
task: <Task pending name='Task-11' coro=<<async_generator_athrow without __name__>()>>
Task was destroyed but it is pending!
task: <Task pending name='Task-16' coro=<<async_generator_athrow without __name__>()>>
0:00:08 load avg: 6.49 [ 95/423] test_dynamic passed
0:00:08 load avg: 6.49 [ 96/423] test_userdict passed
0:00:08 load avg: 6.49 [ 97/423] test_sys_settrace passed
# ...
# and then later
# ...
0:02:42 load avg: 3.63 running: test_concurrent_futures (1 min 33 sec)
0:03:12 load avg: 3.09 running: test_concurrent_futures (2 min 3 sec)
0:03:26 load avg: 2.47 [423/423] test_concurrent_futures passed (2 min 17 sec)

== Tests result: SUCCESS ==

409 tests OK.

14 tests skipped:
    test_devpoll test_gdb test_ioctl test_kqueue test_msilib
    test_ossaudiodev test_startfile test_tix test_tk test_ttk_guionly
    test_winconsoleio test_winreg test_winsound test_zipfile64

Total duration: 3 min 26 sec
Tests result: SUCCESS
0:00:08平均负载:6.49[92/423]测试通过
0:00:08平均负载:6.49[93/423]测试通过
0:00:08平均负载:6.49[94/423]测试\u上下文库\u异步通过
任务已被销毁,但它处于挂起状态!
任务:
任务已被销毁,但它处于挂起状态!
任务:
任务已被销毁,但它处于挂起状态!
任务:
0:00:08平均载荷:6.49[95/423]试验通过
0:00:08平均负载:6.49[96/423]测试通过
0:00:08平均负载:6.49[97/423]测试系统设置跟踪通过
# ...
#后来
# ...
0:02:42负载平均值:3.63运行:测试并发(1分钟33秒)
0:03:12平均负载:3.09运行:测试并发(2分钟3秒)
0:03:26平均负载:2.47[423/423]测试通过(2分17秒)
==测试结果:成功==
409次测试正常。
跳过14项测试:
test_devpoll test_gdb test_ioctl test_kqueue test_msilib
测试测试OSS音频开发测试启动文件测试tix测试tk测试仅限GUI
测试\u winconsoleio测试\u winreg测试\u winsound测试\u zipfile64
总持续时间:3分26秒
测试结果:成功
由于我看不出有任何理由不从Python3.7升级到Python3.8(除非您使用的是一个尚未发布Python3.8控制盘的库),我愿意说,只需更新您的Python候选运行库就足以“修复”这一问题