mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +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
|
@ -134,7 +134,7 @@ class AuditTest(unittest.TestCase):
|
|||
self.assertEqual(events[0][0], "socket.gethostname")
|
||||
self.assertEqual(events[1][0], "socket.__new__")
|
||||
self.assertEqual(events[2][0], "socket.bind")
|
||||
self.assertTrue(events[2][2].endswith("('127.0.0.1', 8080)"))
|
||||
self.assertEndsWith(events[2][2], "('127.0.0.1', 8080)")
|
||||
|
||||
def test_gc(self):
|
||||
returncode, events, stderr = self.run_python("test_gc")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue