Lines Matching refs:str
806 isinstance(obj, str) and not hasattr(socket, obj)]
810 callargs = [getattr(socket, obj) if isinstance(obj, str) else obj
816 err = str(e)
822 ", ".join(str(o) for o in args), err))
847 self.assertIn(str(s.getsockname()), repr(s))
896 self.assertEqual(str(cm.exception),
897 "a bytes-like object is required, not 'str'")
900 self.assertEqual(str(cm.exception),
904 self.assertIn('not NoneType',str(cm.exception))
908 self.assertEqual(str(cm.exception),
909 "a bytes-like object is required, not 'str'")
912 self.assertEqual(str(cm.exception),
916 self.assertIn('not NoneType', str(cm.exception))
924 self.assertIn('(1 given)', str(cm.exception))
927 self.assertIn('(4 given)', str(cm.exception))
1074 self.assertIsInstance(name, str)
1081 self.assertIsInstance(_name, str)
1545 self.assertEqual(str(family), str(family.value))
1548 self.assertEqual(str(type), str(type.value))
1658 self.assertIn(r, str(cm.warning.args[0]))
1792 'ff02::1de:c0:face:8D%' + str(ifindex),
1820 self.assertEqual(nameinfo, ('ff02::1de:c0:face:8d%' + str(ifindex), '1234'))
1828 self.assertEqual(str(s.family), str(s.family.value))
1829 self.assertEqual(str(s.type), str(s.type.value))
3461 os.write(fd, str(i).encode())
3470 self.assertEqual(os.read(fd, 1024), str(n).encode())
4901 self.assertIn("cannot read from timed out object", str(ctx.exception))
4965 if isinstance(self.read_msg, str):
5550 if str(e) == "AF_UNIX path too long":
6333 raise unittest.SkipTest(str(e), typ, name)
6698 os.write(wfd, str(index).encode())
6702 self.assertEqual(data, str(index).encode())