mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +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
|
|
@ -145,8 +145,7 @@ def test_error_from_string(self):
|
|||
compile(input, "<string>", "exec")
|
||||
expected = "'ascii' codec can't decode byte 0xe2 in position 16: " \
|
||||
"ordinal not in range(128)"
|
||||
self.assertTrue(c.exception.args[0].startswith(expected),
|
||||
msg=c.exception.args[0])
|
||||
self.assertStartsWith(c.exception.args[0], expected)
|
||||
|
||||
def test_file_parse_error_multiline(self):
|
||||
# gh96611:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue