Skip to content

Commit 862aeee

Browse files
committed
Fix test in Windows
1 parent bcea6d7 commit 862aeee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/test_repository.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,8 @@ def test_revert(self):
477477
assert revert_diff_stats.files_changed == commit_diff_stats.files_changed
478478

479479
def test_diff_patch(self):
480-
new_content = 'bye world\nadiós\nau revoir monde\n'
480+
new_content = ['bye world', 'adiós', 'au revoir monde']
481+
new_content = ''.join(x + os.linesep for x in new_content)
481482

482483
# create the patch
483484
with open(os.path.join(self.repo.workdir, 'hello.txt'), 'wb') as f:
@@ -751,4 +752,4 @@ def test_worktree_custom_ref(self):
751752
assert worktree_ref.is_checked_out() == False
752753

753754
# The branch still exists
754-
assert branch_name in self.repo.branches
755+
assert branch_name in self.repo.branches

0 commit comments

Comments
 (0)