[bind10-dev] failing python unit tests
Jeremy C. Reed
jreed at isc.org
Tue Apr 20 15:33:25 UTC 2010
I have added makefiles and make targets to run the python unittests. Not
committed yet. (This is for my ticket #153.)
My first problems are in trunk/src/lib/python/isc/cc/tests
make check-local
for pytest in data_test.py session_test.py test.py ; do echo Running
test: $pytest ; env
PYTHONPATH=/home/reed/work/isc/bind10/svn/trunk/src/lib/python
CONFIG_TESTDATA_PATH=/home/reed/work/isc/bind10/svn/trunk/src/lib/config/testdata
/usr/pkg/bin/python3.1 $pytest ; done
Running test: data_test.py
Traceback (most recent call last):
File "data_test.py", line 22, in <module>
import data
ImportError: No module named data
Running test: session_test.py
..........
----------------------------------------------------------------------
Ran 10 tests in 0.003s
OK
Running test: test.py
...........FF........
======================================================================
FAIL: test_to_wire_of_bool_false (__main__.TestCCWireEncoding)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 87, in test_to_wire_of_bool_false
self.assertEqual(wire, b'Skan\x04bool%\x01\x00')
AssertionError: b'Skan\x04bool%\x010' != b'Skan\x04bool%\x01\x00'
======================================================================
FAIL: test_to_wire_of_bool_true (__main__.TestCCWireEncoding)
----------------------------------------------------------------------
Traceback (most recent call last):
File "test.py", line 83, in test_to_wire_of_bool_true
self.assertEqual(wire, b'Skan\x04bool%\x01\x01')
AssertionError: b'Skan\x04bool%\x011' != b'Skan\x04bool%\x01\x01'
----------------------------------------------------------------------
Ran 21 tests in 0.002s
FAILED (failures=2)
*** Error code 1
Stop.
make: stopped in
/home/reed/work/isc/bind10/svn/trunk/src/lib/python/isc/cc/tests
*** Error code 1
Stop.
make: stopped in
/home/reed/work/isc/bind10/svn/trunk/src/lib/python/isc/cc/tests
More information about the bind10-dev
mailing list