mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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
|
@ -160,7 +160,7 @@ class TestMain(unittest.TestCase):
|
|||
rc, out, err = assert_python_ok('-m', self.module, '-h',
|
||||
PYTHON_COLORS='0')
|
||||
self.assertEqual(rc, 0)
|
||||
self.assertTrue(out.startswith(b'usage: '))
|
||||
self.assertStartsWith(out, b'usage: ')
|
||||
self.assertEqual(err, b'')
|
||||
|
||||
def test_sort_keys_flag(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue