mirror of
https://github.com/python/cpython.git
synced 2025-07-31 23:23:11 +00:00
use assert[Not]In where appropriate
This commit is contained in:
parent
8cd0a66a0f
commit
aa98058cc4
86 changed files with 622 additions and 599 deletions
|
@ -491,7 +491,7 @@ class GeneralModuleTests(unittest.TestCase):
|
|||
# it reasonable to get the host's addr in addition to 0.0.0.0.
|
||||
# At least for eCos. This is required for the S/390 to pass.
|
||||
my_ip_addr = socket.gethostbyname(socket.gethostname())
|
||||
self.assertTrue(name[0] in ("0.0.0.0", my_ip_addr), '%s invalid' % name[0])
|
||||
self.assertIn(name[0], ("0.0.0.0", my_ip_addr), '%s invalid' % name[0])
|
||||
self.assertEqual(name[1], port)
|
||||
|
||||
def testGetSockOpt(self):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue