简体   繁体   English

Django的鼻子测试HTML错误

[英]Django-nose test html error

I'm testing a web application using Django-nose to monitor the code coverage. 我正在使用Django-nose测试Web应用程序,以监视代码覆盖率。 At first it worked perfectly well, but when trying to generate HTML it fails with the error: 最初,它工作得很好,但是当尝试生成HTML时,它失败并显示以下错误:

Imput error: No module named copy_reg 输入错误:没有名为copy_reg的模块

It happened after a few times (until then in worked). 它发生了几次(直到工作了)。 I tried it on a computer with newly installed django, django-nose and coverage and the very same code works fine. 我在装有新安装的django,django-nose和coverage的计算机上进行了尝试,并且相同的代码也可以正常工作。 Re-installing django and django-nose didn't help. 重新安装django和django-nose没有帮助。

Any suggestions? 有什么建议么? Should I re-install any library or something? 我应该重新安装任何库或其他东西吗? Thank you in advance! 先感谢您!

我通过使用pip卸载coverage.py并使用easy_install进行安装来解决此问题。

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

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