Message189869
> Shouldn't the surrogateescape error handler (PEP 383) prevent this?
Yes, it shoud (I just read PEP 383, I told you I didn't know anything
about encoding :-).
So basically, for the test failure, the issue is simply that the
platform's default encoding can't encode character '\xff'.
Should I simply remove the offending character from this test address?
Also, let's say I wanted to test that it can be passed and returned
properly, so I add '\0xff' to the adress passed to testBytesName:
s.bind(b"\x00python\x00test\xff")
How should I check the string returned by getsockname()?
self.assertEquals(s.getsockname(), ???) |
|
Date |
User |
Action |
Args |
2013-05-23 17:05:11 | neologix | set | recipients:
+ neologix, pitrou, giampaolo.rodola, python-dev |
2013-05-23 17:05:11 | neologix | link | issue17683 messages |
2013-05-23 17:05:11 | neologix | create | |
|