简体   繁体   English

django-extensions test_error_logging

[英]django-extensions test_error_logging

When running the full set of tests for django i am getting this error: 当运行django的全套测试时,我收到此错误:

FAIL: test_error_logging (django_extensions.tests.management_command.CommandTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/jenkins/shiningpanda/jobs/cb5c943f/virtualenvs/d41d8cd9/local/lib/python2.7/site-packages/django_extensions/tests/management_command.py", line 35, in test_error_logging
    self.assertEqual(len(handler.messages['error']), 1)
AssertionError: 0 != 1

Can anyone explain why i might be getting this and how to stop it? 任何人都可以解释为什么我可能会得到这个以及如何阻止它?

The behavior you describe is similar to this issue on the django-extensions github page. 您描述的行为与django-extensions github页面上的此问题类似。

Looks like the solution is to update to version 1.0.3 看起来解决方案是更新到1.0.3版

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

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