Skip to content

Commit 08a1472

Browse files
authored
[test] Prefer shutil.copy over shutil.copyfile. NFC (#22652)
The former is more flexible as it allows the target to be a directory name. Also remove some unnecessary use of `self.in_dir`.
1 parent e240071 commit 08a1472

File tree

5 files changed

+137
-139
lines changed

5 files changed

+137
-139
lines changed

test/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2192,7 +2192,7 @@ def make_reftest(self, expected, manually_trigger=False):
21922192
# make sure the pngs used here have no color correction, using e.g.
21932193
# pngcrush -rem gAMA -rem cHRM -rem iCCP -rem sRGB infile outfile
21942194
reporting = read_file(test_file('browser_reporting.js'))
2195-
shutil.copyfile(expected, 'expected.png')
2195+
shutil.copy(expected, 'expected.png')
21962196
create_file('reftest.js', '''
21972197
function doReftest() {
21982198
if (doReftest.done) return;

0 commit comments

Comments
 (0)