summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2023-07-05 08:57:59 (GMT)
committerGitHub <noreply@github.com>2023-07-05 08:57:59 (GMT)
commit00c522a81c726f3a15b16ae67bba4840431afdaf (patch)
treeb118f6374446ab52cd00a1648a8b34215ebee0fb /Lib/test
parent5784acd08c89d91f616faba3a0b7b88e0ba4ce67 (diff)
downloadcpython-00c522a81c726f3a15b16ae67bba4840431afdaf.zip
cpython-00c522a81c726f3a15b16ae67bba4840431afdaf.tar.gz
cpython-00c522a81c726f3a15b16ae67bba4840431afdaf.tar.bz2
[3.12] gh-104683: Rename Lib/test/clinic.test as Lib/test/clinic.test.c (GH-106443) (#106444)
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>
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/clinic.test.c (renamed from Lib/test/clinic.test)0
-rw-r--r--Lib/test/test_clinic.py5
2 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/clinic.test b/Lib/test/clinic.test.c
index 5642052..5642052 100644
--- a/Lib/test/clinic.test
+++ b/Lib/test/clinic.test.c
diff --git a/Lib/test/test_clinic.py b/Lib/test/test_clinic.py
index c095d14..7c46e8a 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