[Bug 1116079] Re: Test bzrlib.tests.test_tuned_gzip.TestToGzip.test_enormous_chunk fails - potential regression in python2.7 2.7.3-15ubuntu1

Matthias Klose doko at ubuntu.com
Sun Mar 17 00:41:16 UTC 2013


from the python tracker:

tuned_gzip does dangerous things, it overloads private methods of
GzipFile.

>From Bazaar 2.3 Release Notes:

* Stop using ``bzrlib.tuned_gzip.GzipFile``. It is incompatible with
  python-2.7 and was only used for Knit format repositories, which haven't
  been recommended since 2007. The file itself will be removed in the next
  release. (John Arbash Meinel)

Current version is 2.6b2. bzrlib.tuned_gzip.GzipFile should be removed
two releases ago.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bzr in Ubuntu.
https://bugs.launchpad.net/bugs/1116079

Title:
  Test bzrlib.tests.test_tuned_gzip.TestToGzip.test_enormous_chunk fails
  - potential regression in python2.7 2.7.3-15ubuntu1

Status in Python:
  New
Status in “bzr” package in Ubuntu:
  Confirmed
Status in “python2.7” package in Ubuntu:
  Confirmed
Status in “bzr” source package in Raring:
  Confirmed
Status in “python2.7” source package in Raring:
  Confirmed

Bug description:
  The following test
  bzrlib.tests.test_tuned_gzip.TestToGzip.test_enormous_chunk fails
  with:

  ======================================================================
  FAIL: bzrlib.tests.test_tuned_gzip.TestToGzip.test_enormous_chunks
  ----------------------------------------------------------------------
  _StringException: Empty attachments:
    log

  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/bzrlib/tests/test_tuned_gzip.py", line 129, in test_enormous_chunks
      self.assertToGzip(['a large string\n'*1024*256])
    File "/usr/lib/python2.7/dist-packages/bzrlib/tests/test_tuned_gzip.py", line 116, in assertToGzip
      self.assertEqual(bytes, decoded)
  AssertionError: not equal:
  a = 'a large string\na large string\na large string\na larg
  [...]

  This is reproducible with:
  $ bzr selftest -s bzrlib.tests.test_tuned_gzip.TestToGzip.test_enormous_chunk

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: bzr 2.6.0~bzr6571-4ubuntu1
  ProcVersionSignature: Ubuntu 3.8.0-2.6-generic 3.8.0-rc4
  Uname: Linux 3.8.0-2-generic x86_64
  ApportVersion: 2.8-0ubuntu4
  Architecture: amd64
  Date: Tue Feb  5 10:17:58 2013
  MarkForUpload: True
  PackageArchitecture: all
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   XDG_RUNTIME_DIR=<set>
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  SourcePackage: bzr
  UpgradeStatus: Upgraded to raring on 2012-01-31 (370 days ago)

To manage notifications about this bug go to:
https://bugs.launchpad.net/python/+bug/1116079/+subscriptions




More information about the foundations-bugs mailing list