Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitedb29f0

Browse files
[3.11]gh-104683: Rename Lib/test/clinic.test as Lib/test/clinic.test.c (GH-106443) (#106445)
gh-104683: Rename Lib/test/clinic.test as Lib/test/clinic.test.c (GH-106443)(cherry picked from commita941bd6)Co-authored-by: Erlend E. Aasland <erlend@python.org>
1 parent9f8aa7a commitedb29f0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

‎Lib/test/test_clinic.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,15 +1034,16 @@ class ClinicExternalTest(TestCase):
10341034
maxDiff=None
10351035

10361036
deftest_external(self):
1037+
CLINIC_TEST='clinic.test.c'
10371038
# bpo-42398: Test that the destination file is left unchanged if the
10381039
# content does not change. Moreover, check also that the file
10391040
# modification time does not change in this case.
1040-
source=support.findfile('clinic.test')
1041+
source=support.findfile(CLINIC_TEST)
10411042
withopen(source,'r',encoding='utf-8')asf:
10421043
orig_contents=f.read()
10431044

10441045
withos_helper.temp_dir()astmp_dir:
1045-
testfile=os.path.join(tmp_dir,'clinic.test.c')
1046+
testfile=os.path.join(tmp_dir,CLINIC_TEST)
10461047
withopen(testfile,'w',encoding='utf-8')asf:
10471048
f.write(orig_contents)
10481049
old_mtime_ns=os.stat(testfile).st_mtime_ns

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp