bzr selftest crashed with ImportError: cannot import name Feature
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Medium
|
Martin Pool | ||
bzr (Ubuntu) |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
Trying to run the bzr test suite from trunk. It no longer runs for me (on a fresh branch, after building), crashing with "cannot import name Feature".
This was introduced in trunk r6043 (more specifically, r5967.12.1). If I run selftest on r6042 or r5967, it is fine. r6043 or r5967.12.1 both cause this error.
To reproduce:
$ bzr branch lp:bzr test-trunk
$ cd test-trunk
$ ./setup.py build
$ ./bzr selftest
ProblemType: Crash
DistroRelease: Ubuntu 11.04
Package: bzr 2.3.4-0ubuntu1
ProcVersionSign
Uname: Linux 2.6.38-12-generic i686
NonfreeKernelMo
Architecture: i386
BzrDebugFlags: set()
BzrVersion: 2.5.0dev1
CommandLine: ['./bzr', 'selftest']
CrashDb: bzr
Date: Sun Nov 20 10:52:32 2011
EcryptfsInUse: Yes
ExecutablePath: /home/matt/
FileSystemEncoding: UTF-8
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release i386 (20100429)
InterpreterPath: /usr/bin/python2.7
Locale: en_AU.UTF-8
PackageArchitec
Platform: Linux-2.
ProcCmdline: python ./bzr selftest
ProcEnviron:
SHELL=/bin/bash
PATH=(custom, user)
LANG=en_AU.UTF-8
LANGUAGE=en_AU:en
PythonVersion: 2.7.1
SourcePackage: bzr
Title: bzr crashed with ImportError in /usr/lib/
UpgradeStatus: Upgraded to natty on 2011-04-29 (204 days ago)
UserEncoding: UTF-8
UserGroups: adm admin audio cdrom dialout lpadmin plugdev sambashare
Related branches
- Jelmer Vernooij (community): Approve (code)
-
Diff: 93 lines (+28/-29)2 files modifiedbzrlib/tests/__init__.py (+26/-5)
bzrlib/tests/features.py (+2/-24)
tags: | removed: need-duplicate-check |
You need an update to your bzr fastimport plugin.
I'm pretty sure this is fixed on trunk so probably the packaged version needs to be updated.
Arguable we should just revert the api break instead.