]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-104683: Rename Lib/test/clinic.test as Lib/test/clinic.test.c (GH-106443...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Wed, 5 Jul 2023 09:03:25 +0000 (02:03 -0700)
committerGitHub <noreply@github.com>
Wed, 5 Jul 2023 09:03:25 +0000 (09:03 +0000)
gh-104683: Rename Lib/test/clinic.test as Lib/test/clinic.test.c (GH-106443)
(cherry picked from commit a941bd6c53ac4646926292557a7bb2a86f8025c3)

Co-authored-by: Erlend E. Aasland <erlend@python.org>
Lib/test/clinic.test.c [moved from Lib/test/clinic.test with 100% similarity]
Lib/test/test_clinic.py

similarity index 100%
rename from Lib/test/clinic.test
rename to Lib/test/clinic.test.c
index 8c9fe997f1adbefeea7cf10bdca48cb904795949..f2e0c5e03f8b9ff3acf43229fac2a10960053ff3 100644 (file)
@@ -1034,15 +1034,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