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 @@ -1034,15 +1034,16 @@ class ClinicExternalTest(TestCase):
1034
1034
maxDiff = None
1035
1035
1036
1036
def test_external (self ):
1037
+ CLINIC_TEST = 'clinic.test.c'
1037
1038
# bpo-42398: Test that the destination file is left unchanged if the
1038
1039
# content does not change. Moreover, check also that the file
1039
1040
# modification time does not change in this case.
1040
- source = support .findfile ('clinic.test' )
1041
+ source = support .findfile (CLINIC_TEST )
1041
1042
with open (source , 'r' , encoding = 'utf-8' ) as f :
1042
1043
orig_contents = f .read ()
1043
1044
1044
1045
with os_helper .temp_dir () as tmp_dir :
1045
- testfile = os .path .join (tmp_dir , 'clinic.test.c' )
1046
+ testfile = os .path .join (tmp_dir , CLINIC_TEST )
1046
1047
with open (testfile , 'w' , encoding = 'utf-8' ) as f :
1047
1048
f .write (orig_contents )
1048
1049
old_mtime_ns = os .stat (testfile ).st_mtime_ns
You can’t perform that action at this time.
0 commit comments