[Python-checkins] gh-104683: Rename Lib/test/clinic.test as Lib/test/clinic.test.c (#106443)

erlend-aasland webhook-mailer at python.org
Wed Jul 5 04:33:09 EDT 2023


https://github.com/python/cpython/commit/a941bd6c53ac4646926292557a7bb2a86f8025c3
commit: a941bd6c53ac4646926292557a7bb2a86f8025c3
branch: main
author: Erlend E. Aasland <erlend at python.org>
committer: erlend-aasland <erlend.aasland at protonmail.com>
date: 2023-07-05T08:33:05Z
summary:

gh-104683: Rename Lib/test/clinic.test as Lib/test/clinic.test.c (#106443)

files:
A Lib/test/clinic.test.c
D Lib/test/clinic.test
M Lib/test/test_clinic.py

diff --git a/Lib/test/clinic.test b/Lib/test/clinic.test.c
similarity index 100%
rename from Lib/test/clinic.test
rename to Lib/test/clinic.test.c
diff --git a/Lib/test/test_clinic.py b/Lib/test/test_clinic.py
index c095d14234375..7c46e8a81803a 100644
--- a/Lib/test/test_clinic.py
+++ b/Lib/test/test_clinic.py
@@ -1089,15 +1089,16 @@ class ClinicExternalTest(TestCase):
     maxDiff = None
 
     def test_external(self):
+        CLINIC_TEST = 'clinic.test.c'
         # bpo-42398: Test that the destination file is left unchanged if the
         # content does not change. Moreover, check also that the file
         # modification time does not change in this case.
-        source = support.findfile('clinic.test')
+        source = support.findfile(CLINIC_TEST)
         with open(source, 'r', encoding='utf-8') as f:
             orig_contents = f.read()
 
         with os_helper.temp_dir() as tmp_dir:
-            testfile = os.path.join(tmp_dir, 'clinic.test.c')
+            testfile = os.path.join(tmp_dir, CLINIC_TEST)
             with open(testfile, 'w', encoding='utf-8') as f:
                 f.write(orig_contents)
             old_mtime_ns = os.stat(testfile).st_mtime_ns



More information about the Python-checkins mailing list