Rev 5108: Fix test failing on pqm. in file:///home/vila/src/bzr/bugs/646961-attr-error/
Vincent Ladeuil
v.ladeuil+lp at free.fr
Sun Nov 7 10:20:31 GMT 2010
At file:///home/vila/src/bzr/bugs/646961-attr-error/
------------------------------------------------------------
revno: 5108
revision-id: v.ladeuil+lp at free.fr-20101107102030-t4d2gxwgrlqphw8y
parent: v.ladeuil+lp at free.fr-20101103140028-9iej6klfnpv8wbdz
committer: Vincent Ladeuil <v.ladeuil+lp at free.fr>
branch nick: 646961-attr-error
timestamp: Sun 2010-11-07 11:20:30 +0100
message:
Fix test failing on pqm.
-------------- next part --------------
=== modified file 'bzrlib/tests/test_workingtree.py'
--- a/bzrlib/tests/test_workingtree.py 2010-06-20 11:18:38 +0000
+++ b/bzrlib/tests/test_workingtree.py 2010-11-07 10:20:30 +0000
@@ -349,28 +349,28 @@
self.build_tree_contents([('this/hello', 'Hello World')])
this.commit('Add World')
this.merge_from_branch(other.branch)
- self.assertEqual([conflicts.TextConflict('hello', None, 'hello_id')],
+ self.assertEqual([conflicts.TextConflict('hello', 'hello_id')],
this.conflicts())
this.auto_resolve()
- self.assertEqual([conflicts.TextConflict('hello', None, 'hello_id')],
+ self.assertEqual([conflicts.TextConflict('hello', 'hello_id')],
this.conflicts())
self.build_tree_contents([('this/hello', '<<<<<<<')])
this.auto_resolve()
- self.assertEqual([conflicts.TextConflict('hello', None, 'hello_id')],
+ self.assertEqual([conflicts.TextConflict('hello', 'hello_id')],
this.conflicts())
self.build_tree_contents([('this/hello', '=======')])
this.auto_resolve()
- self.assertEqual([conflicts.TextConflict('hello', None, 'hello_id')],
+ self.assertEqual([conflicts.TextConflict('hello', 'hello_id')],
this.conflicts())
self.build_tree_contents([('this/hello', '\n>>>>>>>')])
remaining, resolved = this.auto_resolve()
- self.assertEqual([conflicts.TextConflict('hello', None, 'hello_id')],
+ self.assertEqual([conflicts.TextConflict('hello', 'hello_id')],
this.conflicts())
self.assertEqual([], resolved)
self.build_tree_contents([('this/hello', 'hELLO wORLD')])
remaining, resolved = this.auto_resolve()
self.assertEqual([], this.conflicts())
- self.assertEqual([conflicts.TextConflict('hello', None, 'hello_id')],
+ self.assertEqual([conflicts.TextConflict('hello', 'hello_id')],
resolved)
self.failIfExists('this/hello.BASE')
@@ -378,7 +378,7 @@
tree = self.make_branch_and_tree('tree')
self.build_tree(['tree/hello/'])
tree.add('hello', 'hello-id')
- file_conflict = conflicts.TextConflict('file', None, 'hello-id')
+ file_conflict = conflicts.TextConflict('file', 'hello-id')
tree.set_conflicts(conflicts.ConflictList([file_conflict]))
tree.auto_resolve()
More information about the bazaar-commits
mailing list