[Python-3000] Need help fixing failing Py3k Unittests in py3k-struni (original) (raw)
Christian Heimes lists at cheimes.de
Wed Jul 11 00:30:13 CEST 2007
- Previous message: [Python-3000] Need help fixing failing Py3k Unittests in py3k-struni
- Next message: [Python-3000] [Python-Dev] Need help fixing failing Py3k Unittests in py3k-struni
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Guido van Rossum wrote:
Please help!
I've made a meta patch that makes debugging the bugs a lot easier. It replaces assert_(foo == bar) and failUnless(foo == bar) with failUnlessEqual(foo, bar). failUnlessEqual shows the value of foo and bar when they are not equal.
http://www.python.org/sf/1751515
sed -r "s/self.assert_((.*)\ ==/self.failUnlessEqual(\1,/" -i .py sed -r "s/self.failUnless((.)\ ==/self.failUnlessEqual(\1,/" -i *.py
By the way the ctypes unit tests are causing a segfault on my machine: test_ctypes Warning: could not import ctypes.test.test_numbers: unpack requires a string argument of length 1 Segmentation fault
Ubunutu 7.04 on i386 machine with an Intel P3.
Christian
- Previous message: [Python-3000] Need help fixing failing Py3k Unittests in py3k-struni
- Next message: [Python-3000] [Python-Dev] Need help fixing failing Py3k Unittests in py3k-struni
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]