mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
gh-71339: Use new assertion methods in tests (GH-129046)
This commit is contained in:
parent
bb244fd33d
commit
2602d8ae98
117 changed files with 407 additions and 445 deletions
|
@ -835,11 +835,11 @@ class UncompressedZipImportTestCase(ImportHooksBaseTestCase):
|
|||
|
||||
s = io.StringIO()
|
||||
print_tb(tb, 1, s)
|
||||
self.assertTrue(s.getvalue().endswith(
|
||||
self.assertEndsWith(s.getvalue(),
|
||||
' def do_raise(): raise TypeError\n'
|
||||
'' if support.has_no_debug_ranges() else
|
||||
' ^^^^^^^^^^^^^^^\n'
|
||||
))
|
||||
)
|
||||
else:
|
||||
raise AssertionError("This ought to be impossible")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue