BIND 10 #2666: stats unittests fail (python 3.3?) (was: stats unittest test_do_GET fails (python 3.3?))
BIND 10 Development
do-not-reply at isc.org
Sun Jan 27 23:43:24 UTC 2013
#2666: stats unittests fail (python 3.3?)
-------------------------------------+-------------------------------------
Reporter: muks | Owner:
Type: defect | Status: new
Priority: medium | Milestone: Next-
Component: statistics | Sprint-Proposed
Keywords: | Resolution:
Sensitive: 0 | CVSS Scoring:
Sub-Project: DNS | Defect Severity: N/A
Estimated Difficulty: 0 | Feature Depending on Ticket:
Total Hours: 0 | Add Hours to Ticket: 0
| Internal?: 0
-------------------------------------+-------------------------------------
Description changed by muks:
Old description:
> A unittest fails in `src/bin/stats/tests/`:
> {{{
> ======================================================================
> FAIL: test_do_GET (__main__.TestHttpHandler)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/home/muks/bind10/src/bin/stats/tests/b10-stats-httpd_test.py",
> line 308, in test_do_GET
> check_XML_URL_PATH()
> File "/home/muks/bind10/src/bin/stats/tests/b10-stats-httpd_test.py",
> line 303, in check_XML_URL_PATH
> self.assertEqual(attr['value'], str(value))
> AssertionError: '2' != '10'
> - 2
> + 10
> }}}
>
> I don't know if it's a Python 3.3 issue, but it didn't used to happen
> before. I started seeing this right after moving to Fedora 18 (with
> Python 3.3).
New description:
A unittest fails in `src/bin/stats/tests/`:
{{{
======================================================================
FAIL: test_do_GET (__main__.TestHttpHandler)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/muks/bind10/src/bin/stats/tests/b10-stats-httpd_test.py",
line 308, in test_do_GET
check_XML_URL_PATH()
File "/home/muks/bind10/src/bin/stats/tests/b10-stats-httpd_test.py",
line 303, in check_XML_URL_PATH
self.assertEqual(attr['value'], str(value))
AssertionError: '2' != '10'
- 2
+ 10
}}}
Here is another failure report in the same dir:
{{{
F.....
======================================================================
ERROR: test_polling (__main__.TestStats)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/muks/bind10/src/bin/stats/tests/b10-stats_test.py", line
1167, in test_polling
for s in stat.statistics_data_bymid['Auth'].values():
KeyError: 'Auth'
======================================================================
FAIL: test_command_show (__main__.TestStats)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/muks/bind10/src/bin/stats/tests/b10-stats_test.py", line
788, in test_command_show
'queries.tcp': sum_qtcp_nds_perzone20 }
AssertionError: {'result': [0, {'Auth': {'queries.udp': 0, 'queries.tcp':
0, 'queries.perzone': [truncated]... != {'result': [0, {'Auth':
{'queries.tcp': 6, 'queries.udp': 4, 'queries.perzone': [truncated]...
Diff is 2888 characters long. Set self.maxDiff to None to see it.
======================================================================
FAIL: test_update_statistics_data_withmid (__main__.TestStats)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/muks/bind10/src/bin/stats/tests/b10-stats_test.py", line
630, in test_update_statistics_data_withmid
bar1_tcp + sum_qtcp)
AssertionError: 1001 != 1007
----------------------------------------------------------------------
Ran 23 tests in 0.618s
FAILED (failures=2, errors=1)
make[3]: *** [check-local] Error 1
}}}
I don't know if it's a Python 3.3 issue, but it didn't used to happen
before. I started seeing this right after moving to Fedora 18 (with Python
3.3).
--
--
Ticket URL: <http://bind10.isc.org/ticket/2666#comment:1>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development
More information about the bind10-tickets
mailing list