Message164872
| Author |
lukasz.langa |
| Recipients |
lukasz.langa, michael.foord |
| Date |
2012年07月07日.15:22:24 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1341674545.77.0.716203051696.issue15279@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
On Mac OS X 10.7 64-bit unittest regression tests fail:
======================================================================
FAIL: test_warnings (unittest.test.test_runner.Test_TextTestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/ambv/Documents/Projekty/Python/cpython/py33/Lib/unittest/test/test_runner.py", line 269, in test_warnings
self.assertEqual(len(out), 12)
AssertionError: 15 != 12
----------------------------------------------------------------------
Ran 568 tests in 24.441s
FAILED (failures=1, skipped=1)
test test_unittest failed
It looks like warnings generated by unittest aren't properly limited to one for each distinct warning. Running _test_warnings.py directly shows that:
$ ./python.exe Lib/unittest/test/_test_warnings.py
.......
----------------------------------------------------------------------
Ran 7 tests in 0.002s
OK
Please use assertEqual instead.
Please use assertEqual instead.
Please use assertEqual instead.
dw
dw
dw
Please use assertTrue instead.
Please use assertTrue instead.
rw
iw
iw
iw
uw
uw
uw
[61188 refs]
The expected behaviour would be for each kind of the "Please use" warnings to only appear once. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年07月07日 15:22:25 | lukasz.langa | set | recipients:
+ lukasz.langa, michael.foord |
| 2012年07月07日 15:22:25 | lukasz.langa | set | messageid: <1341674545.77.0.716203051696.issue15279@psf.upfronthosting.co.za> |
| 2012年07月07日 15:22:25 | lukasz.langa | link | issue15279 messages |
| 2012年07月07日 15:22:24 | lukasz.langa | create |
|