@@ -1894,7 +1894,7 @@ def test_apply_patch(self):
1894
1894
for with_backup in (True , False ):
1895
1895
update_build_option ('backup_patched_files' , with_backup )
1896
1896
self .assertTrue (ft .apply_patch (toy_patch , path ))
1897
- src_file = os .path .join (path , 'toy-0.0' , 'toy .source' )
1897
+ src_file = os .path .join (path , 'toy.source' )
1898
1898
backup_file = src_file + '.orig'
1899
1899
patched = ft .read_file (src_file )
1900
1900
pattern = "I'm a toy, and very proud of it"
@@ -1911,7 +1911,7 @@ def test_apply_patch(self):
1911
1911
toy_patch_gz = os .path .join (testdir , 'sandbox' , 'sources' , 'toy' , 'toy-0.0_gzip.patch.gz' )
1912
1912
with self .mocked_stdout_stderr ():
1913
1913
self .assertTrue (ft .apply_patch (toy_patch_gz , path ))
1914
- patched_gz = ft .read_file (os .path .join (path , 'toy-0.0' , 'toy .source' ))
1914
+ patched_gz = ft .read_file (os .path .join (path , 'toy.source' ))
1915
1915
pattern = "I'm a toy, and very very proud of it"
1916
1916
self .assertIn (pattern , patched_gz )
1917
1917
@@ -1922,7 +1922,7 @@ def test_apply_patch(self):
1922
1922
with self .mocked_stdout_stderr ():
1923
1923
ft .apply_patch (toy_patch_gz , path , options = ' --reverse' )
1924
1924
# Change was really removed
1925
- self .assertNotIn (pattern , ft .read_file (os .path .join (path , 'toy-0.0' , 'toy .source' )))
1925
+ self .assertNotIn (pattern , ft .read_file (os .path .join (path , 'toy.source' )))
1926
1926
1927
1927
# test copying of files, both to an existing directory and a non-existing location
1928
1928
test_file = os .path .join (self .test_prefix , 'foo.txt' )
0 commit comments