bzr's testsuite is failing against python 2.7.5-8 from Debian. It's a snapshot from 20130917, taken from the 2.7 branch. The change leading to the issue was introduced here:
http://hg.python.org/cpython/rev/2e19c65d6688/
The reason for is discussed here:
http://bugs.python.org/issue14984
----
Traceback (most recent call last):
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 71, in test_default_password_without_user
cs = self._get_netrc_cs()
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 53, in _get_netrc_cs
return config.credential_store_registry.get_credential_store('netrc')
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2037, in get_credential_store
cs = cs()
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/__init__.py", line 44, in __init__
self._netrc = netrc.netrc()
File "/usr/lib/python2.7/netrc.py", line 33, in __init__
self._parse(file, fp, default_netrc)
File "/usr/lib/python2.7/netrc.py", line 111, in _parse
" the owner", file, lexer.lineno)
NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/tmp/testbzr-USWnz4.tmp/bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_default_password_without_user/home/.netrc, line 2)
======================================================================
ERROR: bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_default_password
----------------------------------------------------------------------
_StringException: Empty attachments:
log
Traceback (most recent call last):
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 66, in test_default_password
cs = self._get_netrc_cs()
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 53, in _get_netrc_cs
return config.credential_store_registry.get_credential_store('netrc')
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2037, in get_credential_store
cs = cs()
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/__init__.py", line 44, in __init__
self._netrc = netrc.netrc()
File "/usr/lib/python2.7/netrc.py", line 33, in __init__
self._parse(file, fp, default_netrc)
File "/usr/lib/python2.7/netrc.py", line 111, in _parse
" the owner", file, lexer.lineno)
NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/tmp/testbzr-bCDozl.tmp/bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_default_password/home/.netrc, line 2)
======================================================================
ERROR: bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_not_matching_user
----------------------------------------------------------------------
_StringException: Empty attachments:
log
Traceback (most recent call last):
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 56, in test_not_matching_user
cs = self._get_netrc_cs()
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 53, in _get_netrc_cs
return config.credential_store_registry.get_credential_store('netrc')
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2037, in get_credential_store
cs = cs()
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/__init__.py", line 44, in __init__
self._netrc = netrc.netrc()
File "/usr/lib/python2.7/netrc.py", line 33, in __init__
self._parse(file, fp, default_netrc)
File "/usr/lib/python2.7/netrc.py", line 111, in _parse
" the owner", file, lexer.lineno)
NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/tmp/testbzr-rO97ny.tmp/bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_not_matching_user/home/.netrc, line 2)
======================================================================
ERROR: bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_matching_user
----------------------------------------------------------------------
_StringException: Empty attachments:
log
Traceback (most recent call last):
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 61, in test_matching_user
cs = self._get_netrc_cs()
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 53, in _get_netrc_cs
return config.credential_store_registry.get_credential_store('netrc')
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2037, in get_credential_store
cs = cs()
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/__init__.py", line 44, in __init__
self._netrc = netrc.netrc()
File "/usr/lib/python2.7/netrc.py", line 33, in __init__
self._parse(file, fp, default_netrc)
File "/usr/lib/python2.7/netrc.py", line 111, in _parse
" the owner", file, lexer.lineno)
NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/tmp/testbzr-q5Xyys.tmp/bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_matching_user/home/.netrc, line 2)
======================================================================
ERROR: bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_get_netrc_credentials_via_auth_config
----------------------------------------------------------------------
_StringException: Empty attachments:
log
Traceback (most recent call last):
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 84, in test_get_netrc_credentials_via_auth_config
credentials = conf.get_credentials('scheme', 'host', user='joe')
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 1867, in get_credentials
auth_def.get('password_encoding', None))
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2012, in decode_password
cs = credential_store_registry.get_credential_store(encoding)
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2037, in get_credential_store
cs = cs()
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/__init__.py", line 44, in __init__
self._netrc = netrc.netrc()
File "/usr/lib/python2.7/netrc.py", line 33, in __init__
self._parse(file, fp, default_netrc)
File "/usr/lib/python2.7/netrc.py", line 111, in _parse
" the owner", file, lexer.lineno)
NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/tmp/testbzr-maf8ca.tmp/bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_get_netrc_credentials_via_auth_config/home/.netrc, line 2)
======================================================================
ERROR: bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_default_password_without_user
----------------------------------------------------------------------
_StringException: Empty attachments:
log
Traceback (most recent call last):
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 71, in test_default_password_without_user
cs = self._get_netrc_cs()
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/tests/test_netrc.py", line 53, in _get_netrc_cs
return config.credential_store_registry.get_credential_store('netrc')
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/config.py", line 2037, in get_credential_store
cs = cs()
File "/tmp/buildd/bzr-2.6.0/build/lib.linux-x86_64-2.7/bzrlib/plugins/netrc_credential_store/__init__.py", line 44, in __init__
self._netrc = netrc.netrc()
File "/usr/lib/python2.7/netrc.py", line 33, in __init__
self._parse(file, fp, default_netrc)
File "/usr/lib/python2.7/netrc.py", line 111, in _parse
" the owner", file, lexer.lineno)
NetrcParseError: ~/.netrc access too permissive: access permissions must restrict access to only the owner (/tmp/testbzr-USWnz4.tmp/bzrlib.plugins.netrc_credential_store.tests.test_netrc.TestNetrcCS.test_default_password_without_user/home/.netrc, line 2)
FWIW, I tried to just chmod 600 the .netrc file in the setUp function, but that doesn't seem to do it...