Skip to content

py27 unicode hostname fails allowed-hosts check #21

@sadams

Description

@sadams

If you try and connect with a unicode hostname in python 2:

socket.connect((u'127.0.0.1', 51999))

you get:

SocketConnectBlockedError: A test tried to use socket.socket.connect() with host "None" (allowed: "127.0.0.1,::1").

even if it's in the allowed hosts whitelist

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions