[BUG] bzr-0.1-rc1: selftest failed on Windows
Alexander Belchenko
bialix at ukr.net
Sat Oct 8 23:39:22 BST 2005
I'm not surprising that bzr selftest fails on Windows but I'm surprising
why. I've got log from selftest (see below). It looks that have a bug in
test suite object?
bzr binary E:\work\Python\bzr\0.1\bzr-0.1rc1\bzr
~~~~E
======================================================================
ERROR: test_link_diff_added (bzrlib.selftest.testinv.TestEntryDiffing)
log from this test:
DEBUG opened log file
c:\docume~1\bialix\locals~1\temp\testbzrenxcli.log
DEBUG created control directory in
E:\work\Python\bzr\0.1\bzr-0.1rc1\test0000.tmp\testinv.TestEntryDiffing.test_link_diff_added
DEBUG got branch format u'Bazaar-NG branch, format 5\n'
DEBUG lookup path []
DEBUG add file file file_id:{fileid} kind='file'
DEBUG wrote working inventory
DEBUG preparing to commit
DEBUG failed to open
E:\work\Python\bzr\0.1\bzr-0.1rc1\test0000.tmp\testinv.TestEntryDiffing.test_link_diff_added\.bzr\stat-cache:
[Errno 2] No such file or directory:
'E:\\work\\Python\\bzr\\0.1\\bzr-0.1rc1\\test0000.tmp\\testinv.TestEntryDiffing.test_link_diff_added\\.bzr\\stat-cache'
DEBUG write hc
DEBUG Selecting files for commit with filter None
DEBUG check file {fileid}
DEBUG file selected for commit
DEBUG new parents of file are {}
DEBUG new revision for {fileid}
DEBUG storing file {fileid} in revision {1}
DEBUG add store entry '1'
DEBUG new revision_id is {1}
DEBUG add {1} to revision-history
----------------------------------------------------------------------
Traceback (most recent call last):
File "E:\work\Python\bzr\0.1\bzr-0.1rc1\bzrlib\selftest\testinv.py",
line 209, in test_link_diff_added
self.link_1.diff(internal_diff,
AttributeError: 'TestEntryDiffing' object has no attribute 'link_1'
----------------------------------------------------------------------
Ran 5 tests in 0.625s
FAILED (errors=1)
Failed tests working directories are in
'E:\work\Python\bzr\0.1\bzr-0.1rc1\test0000.tmp'
I discover that in testinv.py class TestEntryDiffing in setUp method
have following statements:
if has_symlinks():
self.link_1 = self.inv_1['linkid']
self.link_2 = self.inv_2['linkid']
Function has_symlinks() from osutils.py return False if standard module
os have not attribute symlink. On Windows this module have not this
attributes. What need to do in this situation? Disable test or redesign
them?
Alexander.
More information about the bazaar
mailing list