Oh, actually I'm seeing two issues here. Apport wants a file opened in binary mode for pr.write, but it was also failing in my lxc container for a _second_ reason:
pr['Locale'] = os.environ.get('LANG')
That causes a crash in a minimal environment, with the LANG variable unset, because apparently python-apport's Report class doesn't like when we set an empty value.
There are a 4 other failing tests, with the qbzr and builddeb plugins, but at least those ones aren't in core bzr :)
Oh, actually I'm seeing two issues here. Apport wants a file opened in binary mode for pr.write, but it was also failing in my lxc container for a _second_ reason: get('LANG' )
pr['Locale'] = os.environ.
That causes a crash in a minimal environment, with the LANG variable unset, because apparently python-apport's Report class doesn't like when we set an empty value.
There are a 4 other failing tests, with the qbzr and builddeb plugins, but at least those ones aren't in core bzr :)