[Python-3000] Move to a "py3k" branch *DONE*
Neal Norwitz
nnorwitz at gmail.com
Fri Aug 10 07:37:48 CEST 2007
On 8/9/07, Guido van Rossum <guido at python.org> wrote:
> This is done. The new py3k branch is ready for business.
>
> Left to do:
>
> - switch the buildbot and the doc builder to use the new branch (Neal)
I've updated to use the new branch. I got the docs building, but
there are many more problems. I won't re-enable the cronjob until
more things are working.
> There are currently about 7 failing unit tests left:
>
> test_bsddb
> test_bsddb3
> test_email
> test_email_codecs
> test_email_renamed
> test_sqlite
> test_urllib2_localnet
Ok, I disabled these, so if only they fail, mail shouldn't be sent
(when I enable the script).
There are other problems:
* had to kill test_poplib due to taking all cpu without progress
* bunch of tests leak (./python ./Lib/test/regrtest.py -R 4:3:
test_foo test_bar ...)
* at least one test fails with a fatal error
* make install fails
Here are the details (probably best to update the wiki with status
before people start working on these):
I'm not sure what was happening with test_poplib. I had to kill
test_poplib due to taking all cpu without progress. When I ran it by
itself, it was fine. So there was some bad interaction with another
test.
Ref leaks and fatal error (see
http://docs.python.org/dev/3.0/results/make-test-refleak.out):
test_array leaked [11, 11, 11] references, sum=33
test_bytes leaked [4, 4, 4] references, sum=12
test_codeccallbacks leaked [21, 21, 21] references, sum=63
test_codecs leaked [260, 260, 260] references, sum=780
test_ctypes leaked [10, 10, 10] references, sum=30
Fatal Python error:
/home/neal/python/py3k/Modules/datetimemodule.c:1175 object at
0xb60b19c8 has negative ref count -4
There are probably more, but I haven't had a chance to run more after
test_datetime.
This failure occurred while running with -R:
test test_coding failed -- Traceback (most recent call last):
File "/tmp/python-test-3.0/local/lib/python3.0/test/test_coding.py",
line 12, in test_bad_coding2
self.verify_bad_module(module_name)
File "/tmp/python-test-3.0/local/lib/python3.0/test/test_coding.py",
line 20, in verify_bad_module
text = fp.read()
File "/tmp/python-test-3.0/local/lib/python3.0/io.py", line 1148, in read
res += decoder.decode(self.buffer.read(), True)
File "/tmp/python-test-3.0/local/lib/python3.0/encodings/ascii.py",
line 26, in decode
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position
0: ordinal not in range(128)
See http://docs.python.org/dev/3.0/results/make-install.out for this failure:
Compiling /tmp/python-test-3.0/local/lib/python3.0/test/test_pep263.py ...
Traceback (most recent call last):
File "/tmp/python-test-3.0/local/lib/python3.0/compileall.py", line
162, in <module>
exit_status = int(not main())
File "/tmp/python-test-3.0/local/lib/python3.0/compileall.py", line
152, in main
force, rx, quiet):
File "/tmp/python-test-3.0/local/lib/python3.0/compileall.py", line
89, in compile_dir
if not compile_dir(fullname, maxlevels - 1, dfile, force, rx, quiet):
File "/tmp/python-test-3.0/local/lib/python3.0/compileall.py", line
65, in compile_dir
ok = py_compile.compile(fullname, None, dfile, True)
File "/tmp/python-test-3.0/local/lib/python3.0/py_compile.py", line
144, in compile
py_exc = PyCompileError(err.__class__,err.args,dfile or file)
File "/tmp/python-test-3.0/local/lib/python3.0/py_compile.py", line
49, in __init__
tbtext = ''.join(traceback.format_exception_only(exc_type, exc_value))
File "/tmp/python-test-3.0/local/lib/python3.0/traceback.py", line
179, in format_exception_only
filename = value.filename or "<string>"
AttributeError: 'tuple' object has no attribute 'filename'
I'm guessing this came from the change in exception args handling?
File "/tmp/python-test-3.0/local/lib/python3.0/py_compile.py", line
144, in compile
py_exc = PyCompileError(err.__class__,err.args,dfile or file)
n
More information about the Python-3000
mailing list