We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bcea6d7 commit 862aeeeCopy full SHA for 862aeee
test/test_repository.py
@@ -477,7 +477,8 @@ def test_revert(self):
477
assert revert_diff_stats.files_changed == commit_diff_stats.files_changed
478
479
def test_diff_patch(self):
480
- new_content = 'bye world\nadiós\nau revoir monde\n'
+ new_content = ['bye world', 'adiós', 'au revoir monde']
481
+ new_content = ''.join(x + os.linesep for x in new_content)
482
483
# create the patch
484
with open(os.path.join(self.repo.workdir, 'hello.txt'), 'wb') as f:
@@ -751,4 +752,4 @@ def test_worktree_custom_ref(self):
751
752
assert worktree_ref.is_checked_out() == False
753
754
# The branch still exists
- assert branch_name in self.repo.branches
755
+ assert branch_name in self.repo.branches
0 commit comments