Skip to content

Commit 7ee46f3

Browse files
gh-155207: Use the ExtraAssertions mixin in test_clinic
unittest.TestCase.assertStartsWith() and assertEndsWith() were added in 3.14. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent f44fe3e commit 7ee46f3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Lib/test/test_clinic.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from test import support, test_tools
77
from test.support import os_helper
88
from test.support.os_helper import TESTFN, unlink, rmtree
9+
from test.support.testcase import ExtraAssertions
910
from textwrap import dedent
1011
from unittest import TestCase
1112
import difflib
@@ -2609,7 +2610,7 @@ def test_disallow_defining_class_at_module_level(self):
26092610
self.expect_failure(block, err, lineno=2)
26102611

26112612

2612-
class ClinicExternalTest(TestCase):
2613+
class ClinicExternalTest(TestCase, ExtraAssertions):
26132614
maxDiff = None
26142615

26152616
def setUp(self):

0 commit comments

Comments
 (0)