[Python-3000] Pleaswe help with the countdown to zero failing tests in the struni branch!

Guido van Rossum guido at python.org
Tue Aug 7 21:27:40 CEST 2007


I still get these three failures on Ubuntu dapper:


======================================================================
ERROR: test_fileobj_iter (test.test_tarfile.Bz2UstarReadTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/test/test_tarfile.py",
line 83, in test_fileobj_iter
    tarinfo = self.tar.getmember("ustar/regtype")
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 2055, in extract
    self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 2131, in _extract_member
    self.makefile(tarinfo, targetpath)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 2169, in makefile
    copyfileobj(source, target)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 254, in copyfileobj
    shutil.copyfileobj(src, dst)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/shutil.py",
line 21, in copyfileobj
    buf = fsrc.read(length)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 809, in read
    buf += self.fileobj.read(size - len(buf))
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 718, in read
    return self.readnormal(size)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 727, in readnormal
    return self.fileobj.read(size)
ValueError: the bz2 library has received wrong parameters

======================================================================
ERROR: test_fileobj_readlines (test.test_tarfile.Bz2UstarReadTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/test/test_tarfile.py",
line 67, in test_fileobj_readlines
    tarinfo = self.tar.getmember("ustar/regtype")
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 2055, in extract
    self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 2131, in _extract_member
    self.makefile(tarinfo, targetpath)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 2169, in makefile
    copyfileobj(source, target)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 254, in copyfileobj
    shutil.copyfileobj(src, dst)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/shutil.py",
line 21, in copyfileobj
    buf = fsrc.read(length)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 809, in read
    buf += self.fileobj.read(size - len(buf))
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 718, in read
    return self.readnormal(size)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 727, in readnormal
    return self.fileobj.read(size)
ValueError: the bz2 library has received wrong parameters

======================================================================
ERROR: test_fileobj_seek (test.test_tarfile.Bz2UstarReadTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/test/test_tarfile.py",
line 93, in test_fileobj_seek
    fobj = open(os.path.join(TEMPDIR, "ustar/regtype"), "rb")
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 2055, in extract
    self._extract_member(tarinfo, os.path.join(path, tarinfo.name))
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 2131, in _extract_member
    self.makefile(tarinfo, targetpath)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 2169, in makefile
    copyfileobj(source, target)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 254, in copyfileobj
    shutil.copyfileobj(src, dst)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/shutil.py",
line 21, in copyfileobj
    buf = fsrc.read(length)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 809, in read
    buf += self.fileobj.read(size - len(buf))
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 718, in read
    return self.readnormal(size)
  File "/usr/local/google/home/guido/python/py3k-struni/Lib/tarfile.py",
line 727, in readnormal
    return self.fileobj.read(size)
ValueError: the bz2 library has received wrong parameters

----------------------------------------------------------------------
Ran 140 tests in 5.346s

FAILED (errors=3)
test test_tarfile failed -- errors occurred; run in verbose mode for details
1 test failed:
    test_tarfile
[69852 refs]


On 8/7/07, Lars Gustäbel <lars at gustaebel.de> wrote:
> On Tue, Aug 07, 2007 at 08:13:07AM +0200, Christian Heimes wrote:
> > > test_tarfile
> > > Virgin territory again (but different owner :-).
> >
> > The tarfile should be addressed by either its original author or
> > somebody with lots of spare time. As stated earlier it's a beast. I
> > tried to fix it several weeks ago because I thought it is a low hanging
> > fruit. I was totally wrong. :/
>
> Okay, I fixed tarfile.py. It isn't that hard if know how to tame
> the beast ;-) I hope everything works fine now.
>
> --
> Lars Gustäbel
> lars at gustaebel.de
>
> Der Mensch kann zwar tun, was er will,
> aber er kann nicht wollen, was er will.
> (Arthur Schopenhauer)
>
> _______________________________________________
> Python-3000 mailing list
> Python-3000 at python.org
> http://mail.python.org/mailman/listinfo/python-3000
> Unsubscribe: http://mail.python.org/mailman/options/python-3000/guido%40python.org
>


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


More information about the Python-3000 mailing list