@@ -280,23 +280,23 @@ def test_diff_submodule(self):
280
280
"""Test that diff is able to correctly diff commits that cover submodule changes"""
281
281
# Init a temp git repo that will be referenced as a submodule
282
282
sub = Repo .init (self .submodule_dir )
283
- with open (f" { self .submodule_dir } /subfile" , "w" ) as sub_subfile :
283
+ with open (self .submodule_dir + " /subfile" , "w" ) as sub_subfile :
284
284
sub_subfile .write ("" )
285
285
sub .index .add (["subfile" ])
286
286
sub .index .commit ("first commit" )
287
287
288
288
# Init a temp git repo that will incorporate the submodule
289
289
repo = Repo .init (self .repo_dir )
290
- with open (f" { self .repo_dir } /test" , "w" ) as foo_test :
290
+ with open (self .repo_dir + " /test" , "w" ) as foo_test :
291
291
foo_test .write ("" )
292
292
repo .index .add (['test' ])
293
- Submodule .add (repo , "subtest" , "sub" , url = f "file://{ self .submodule_dir } " )
293
+ Submodule .add (repo , "subtest" , "sub" , url = "file://" + self .submodule_dir )
294
294
repo .index .commit ("first commit" )
295
295
repo .create_tag ('1' )
296
296
297
297
# Add a commit to the submodule
298
298
submodule = repo .submodule ('subtest' )
299
- with open (f" { self .repo_dir } /sub/subfile" , "w" ) as foo_sub_subfile :
299
+ with open (self .repo_dir + " /sub/subfile" , "w" ) as foo_sub_subfile :
300
300
foo_sub_subfile .write ("blub" )
301
301
submodule .module ().index .add (["subfile" ])
302
302
submodule .module ().index .commit ("changed subfile" )
0 commit comments