[Python-3000] Three new failing tests?

Guido van Rossum guido at python.org
Tue Oct 23 21:30:07 CEST 2007


I've got three tests failing in my py3k branch, on Linux:

$ ./python Lib/test/regrtest.py test_codeccallbacks test_ctypes test_locale
test_codeccallbacks
test test_codeccallbacks failed -- Traceback (most recent call last):
  File "/usr/local/google/home/guido/python/py3kd/Lib/test/test_codeccallbacks.py",
line 795, in test_translatehelper
    self.assertRaises(ValueError, "\xff".translate, D())
AssertionError: ValueError not raised by translate

test_ctypes
test test_ctypes failed -- errors occurred; run in verbose mode for details
test_locale
test test_locale produced unexpected output:
**********************************************************************
*** lines 2-5 of actual output doesn't appear in expected output after line 1:
+ s'\xc3\xac\xc2\xa0\xc2\xbc'.split() == [s'\xc3\xac\xc2\xa0\xc2\xbc']
!= ['\xec\xa0\xbc']
+ s'\xc3\xad\xc2\x95\xc2\xa0'.strip() == s'\xc3\xad\xc2\x95\xc2\xa0'
!= '\xed\x95\xa0'
+ s'\xc3\x8c\xc2\x85'.lower() == s'\xc3\x8c\xc2\x85' != '\xcc\x85'
+ s'\xc3\xad\xc2\x95\xc2\xa0'.upper() == s'\xc3\xad\xc2\x95\xc2\xa0'
!= '\xed\x95\xa0'
**********************************************************************
3 tests failed:
    test_codeccallbacks test_ctypes test_locale
[94873 refs]
$

I don't think Georg's latest checkin (PyInt_Check/PyLong_Check issues)
broke these.

-- 
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list