dulwich-users team mailing list archive
-
dulwich-users team
-
Mailing list archive
-
Message #00284
[PATCH 06/28] test_patch: Fix a tree-adding typo.
From: Dave Borowitz <dborowitz@xxxxxxxxxx>
Change-Id: I6deeea58c5820d79f0060e8423f356aab2841a59
---
dulwich/tests/test_patch.py | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/dulwich/tests/test_patch.py b/dulwich/tests/test_patch.py
index 13c6559..eede66d 100644
--- a/dulwich/tests/test_patch.py
+++ b/dulwich/tests/test_patch.py
@@ -224,7 +224,7 @@ class DiffTests(TestCase):
tree2 = Tree()
tree2.add(0644, "added.txt", added.id)
tree2.add(0644, "changed.txt", changed2.id)
- tree1.add(0644, "unchanged.txt", changed1.id)
+ tree2.add(0644, "unchanged.txt", changed1.id)
store.add_objects([(o, None) for o in [
tree1, tree2, added, removed, changed1, changed2, unchanged]])
write_tree_diff(f, store, tree1.id, tree2.id)
@@ -251,12 +251,4 @@ class DiffTests(TestCase):
'+++ /dev/null',
'@@ -1,1 +1,0 @@',
'-removed',
- 'diff --git a/unchanged.txt /dev/null',
- 'deleted mode 644',
- 'index bf84e48..e69de29',
- '--- a/unchanged.txt',
- '+++ /dev/null',
- '@@ -1,2 +1,0 @@',
- '-unchanged',
- '-removed',
], f.getvalue().splitlines())
--
1.7.3.2.168.gd6b63
References