diff options
author | JJ Graham <thetwoj@gmail.com> | 2019-10-20 19:52:03 -0500 |
---|---|---|
committer | Sebastian Thiel <sebastian.thiel@icloud.com> | 2019-10-21 13:10:28 +0200 |
commit | 44496c6370d8f9b15b953a88b33816a92096ce4d (patch) | |
tree | 8d4d4f8859b15888e1d7d227a2079e2fd7e9e41e /git | |
parent | a086625da1939d2ccfc0dd27e4d5d63f47c3d2c9 (diff) | |
download | gitpython-44496c6370d8f9b15b953a88b33816a92096ce4d.tar.gz |
Removing f-strings to maintain 3.4 and 3.5 compatability
Diffstat (limited to 'git')
-rw-r--r-- | git/test/test_diff.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/git/test/test_diff.py b/git/test/test_diff.py index 1bab4510..56e51289 100644 --- a/git/test/test_diff.py +++ b/git/test/test_diff.py @@ -280,23 +280,23 @@ class TestDiff(TestBase): """Test that diff is able to correctly diff commits that cover submodule changes""" # Init a temp git repo that will be referenced as a submodule sub = Repo.init(self.submodule_dir) - with open(f"{self.submodule_dir}/subfile", "w") as sub_subfile: + with open(self.submodule_dir + "/subfile", "w") as sub_subfile: sub_subfile.write("") sub.index.add(["subfile"]) sub.index.commit("first commit") # Init a temp git repo that will incorporate the submodule repo = Repo.init(self.repo_dir) - with open(f"{self.repo_dir}/test", "w") as foo_test: + with open(self.repo_dir + "/test", "w") as foo_test: foo_test.write("") repo.index.add(['test']) - Submodule.add(repo, "subtest", "sub", url=f"file://{self.submodule_dir}") + Submodule.add(repo, "subtest", "sub", url="file://" + self.submodule_dir) repo.index.commit("first commit") repo.create_tag('1') # Add a commit to the submodule submodule = repo.submodule('subtest') - with open(f"{self.repo_dir}/sub/subfile", "w") as foo_sub_subfile: + with open(self.repo_dir + "/sub/subfile", "w") as foo_sub_subfile: foo_sub_subfile.write("blub") submodule.module().index.add(["subfile"]) submodule.module().index.commit("changed subfile") |