Tests fail with Python 2.7

Bug #718115 reported by Christian Faulhammer
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bzr-rewrite
Fix Released
High
Jelmer Vernooij

Bug Description

From a distant corner of my head I remember something similar happened with the Bazaar test suite itself.

****************************************
make -j14 -j14 -j1 check
BZR_PLUGINS_AT=rewrite@/var/tmp/portage/dev-vcs/bzr-rewrite-0.6.1/work/bzr-rewrite-0.6.1 /usr/bin/python /usr/bin/bzr selftest --starting-with=bzrlib.plugins.rewrite
bzr: ERROR: exceptions.AttributeError: 'module' object has no attribute '_WritelnDecorator'

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 912, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 1112, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 690, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.7/site-packages/bzrlib/commands.py", line 705, in run
    return self._operation.run_simple(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 135, in run_simple
    self.cleanups, self.func, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/builtins.py", line 3641, in run
    result = selftest(**selftest_kwargs)
  File "/usr/lib/python2.7/site-packages/bzrlib/tests/__init__.py", line 3481, in selftest
    result_decorators=result_decorators,
  File "/usr/lib/python2.7/site-packages/bzrlib/tests/__init__.py", line 2967, in run_suite
    result_decorators=result_decorators,
  File "/usr/lib/python2.7/site-packages/bzrlib/tests/__init__.py", line 621, in __init__
    self.stream = unittest._WritelnDecorator(stream)
AttributeError: 'module' object has no attribute '_WritelnDecorator'

bzr 2.2.2 on python 2.7.1 (Linux-2.6.37-i686-Quad-Core_AMD_Opteron-tm-_Processor_2350-with-gentoo-2.0.1)
arguments: ['/usr/bin/bzr', 'selftest', '--starting-with=bzrlib.plugins.rewrite']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_US.utf8'
plugins:
  bash_completion /usr/lib/python2.7/site-packages/bzrlib/plugins/bash_completion [2.2.2]
  launchpad /usr/lib/python2.7/site-packages/bzrlib/plugins/launchpad [2.2.2]
  netrc_credential_store /usr/lib/python2.7/site-packages/bzrlib/plugins/netrc_credential_store [2.2.2]
  news_merge /usr/lib/python2.7/site-packages/bzrlib/plugins/news_merge [2.2.2]
  rewrite /var/tmp/portage/dev-vcs/bzr-rewrite-0.6.1/work/bzr-rewrite-0.6.1 [0.6.1]

*** Bazaar has encountered an internal error. This probably indicates a
    bug in Bazaar. You can help us fix it by filing a bug report at
        https://bugs.launchpad.net/bzr/+filebug
    including this traceback and a description of the problem.

Revision history for this message
Jelmer Vernooij (jelmer) wrote :

This is fixed in trunk.

Changed in bzr-rewrite:
status: New → Fix Released
status: Fix Released → Fix Committed
importance: Undecided → High
assignee: nobody → Jelmer Vernooij (jelmer)
Jelmer Vernooij (jelmer)
Changed in bzr-rewrite:
milestone: none → 0.6.2
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.