简体   繁体   English

运行py.test显示重复的unicode

[英]Running py.test displays repeated unicode

The project running py.test handles calls to the Twilio API. 运行py.test的项目处理对Twilio API的调用。 Running py.test on a directory or a particular test file returns the test results, but also a sequence of repeated unicode characters. 在目录或特定测试文件上运行py.test返回测试结果,但还会返回一系列重复的unicode字符。 This happens for both successful and failed tests. 成功和失败的测试都会发生这种情况。

Could this be due to an improper installation of py.test or perhaps conflicts with plugins? 可能是由于py.test安装不正确还是与插件冲突造成的?

pytest运行

It looks like the script is trying to use ANSI escape sequences to display different colours etc. However, these seem to be getting interpreted as UTF-8 . 脚本似乎正在尝试使用ANSI转义序列来显示不同的颜色等。但是,这些似乎被解释为UTF-8

My recommendation would be to check your terminal settings. 我的建议是检查您的终端设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM