regressiontests.test_runner.tests.DeprecationDisplayTest.test_runner_deprecation_verbosity_zero() fails with enabled warnings
When warnings are enabled (using PYTHONWARNINGS="d" environmental variable), then regressiontests.test_runner.tests.DeprecationDisplayTest.test_runner_deprecation_verbosity_zero() fails.
I use Django 1.5.3.
$ PYTHONPATH="." python3.3 tests/runtests.py --settings=test_sqlite -v0 test_runner.DeprecationDisplayTest.test_runner_deprecation_verbosity_zero
----------------------------------------------------------------------
Ran 1 test in 1.086s
OK
$ PYTHONPATH="." PYTHONWARNINGS="d" python3.3 tests/runtests.py --settings=test_sqlite -v0 test_runner.DeprecationDisplayTest.test_runner_deprecation_verbosity_zero
======================================================================
FAIL: test_runner_deprecation_verbosity_zero (regressiontests.test_runner.tests.DeprecationDisplayTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/tmp/Django-1.5.3/tests/regressiontests/test_runner/tests.py", line 368, in test_runner_deprecation_verbosity_zero
self.assertFalse("DeprecationWarning: warning from test" in err)
AssertionError: True is not False
----------------------------------------------------------------------
Ran 1 test in 1.060s
FAILED (failures=1)
Change History
(4)
Triage Stage: |
Unreviewed → Accepted
|
Type: |
Uncategorized → Bug
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Hi,
Thanks for the detailed report. I can indeed reproduce the issue.
It looks like the breakage was introduced by commit 572a300e56bc0192a9c82565a1d39b96f18bebee and interestingly, it only seems to be present on the 1.5 branch.