File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed File renamed without changes.
Original file line number Diff line number Diff line change @@ -1089,15 +1089,16 @@ class ClinicExternalTest(TestCase):
1089
1089
maxDiff = None
1090
1090
1091
1091
def test_external (self ):
1092
+ CLINIC_TEST = 'clinic.test.c'
1092
1093
# bpo-42398: Test that the destination file is left unchanged if the
1093
1094
# content does not change. Moreover, check also that the file
1094
1095
# modification time does not change in this case.
1095
- source = support .findfile ('clinic.test' )
1096
+ source = support .findfile (CLINIC_TEST )
1096
1097
with open (source , 'r' , encoding = 'utf-8' ) as f :
1097
1098
orig_contents = f .read ()
1098
1099
1099
1100
with os_helper .temp_dir () as tmp_dir :
1100
- testfile = os .path .join (tmp_dir , 'clinic.test.c' )
1101
+ testfile = os .path .join (tmp_dir , CLINIC_TEST )
1101
1102
with open (testfile , 'w' , encoding = 'utf-8' ) as f :
1102
1103
f .write (orig_contents )
1103
1104
old_mtime_ns = os .stat (testfile ).st_mtime_ns
You can’t perform that action at this time.
0 commit comments