diff options
author | Hiroki Tokunaga <tokusan441@gmail.com> | 2022-04-07 10:04:19 +0900 |
---|---|---|
committer | Hiroki Tokunaga <tokusan441@gmail.com> | 2022-04-07 10:04:19 +0900 |
commit | 49150e79c6f7a19a0d61a5ea6864b9ac140264ff (patch) | |
tree | 9374c958521a870abd5c6afcb32f5a331e932c68 /test/test_repo.py | |
parent | 946b64b62bdc9fb3447b6daf0053b11a2e4c5277 (diff) | |
download | gitpython-49150e79c6f7a19a0d61a5ea6864b9ac140264ff.tar.gz |
chore: `s/strip_newline/&_in_stdout`
Diffstat (limited to 'test/test_repo.py')
-rw-r--r-- | test/test_repo.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_repo.py b/test/test_repo.py index 14339f57..c5b2680d 100644 --- a/test/test_repo.py +++ b/test/test_repo.py @@ -1100,11 +1100,11 @@ class TestRepo(TestBase): self.assertEqual(r.currently_rebasing_on(), commitSpanish) @with_rw_directory - def test_do_not_strip_newline(self, rw_dir): + def test_do_not_strip_newline_in_stdout(self, rw_dir): r = Repo.init(rw_dir) fp = osp.join(rw_dir, 'hello.txt') with open(fp, 'w') as fs: fs.write("hello\n") r.git.add(Git.polish_url(fp)) r.git.commit(message="init") - self.assertEqual(r.git.show("HEAD:hello.txt", strip_newline=False), 'hello\n') + self.assertEqual(r.git.show("HEAD:hello.txt", strip_newline_in_stdout=False), 'hello\n') |