New submission from Marcus Cobden:

With the most recent 3.4 bugfix, calling create_server with port=None stopped 
working.
This also affects 3.5, and I would imagine also 3.6, but haven't checked that.

Test case:

import asyncio; l = asyncio.get_event_loop(); 
l.run_until_complete(l.create_server(lambda: None, host='0.0.0.0', port=None))

Expected result: a socket object
Broken result: "TypeError: an integer is required (got type NoneType)"

----------
components: asyncio
messages: 269507
nosy: gvanrossum, haypo, mcobden, yselivanov
priority: normal
severity: normal
status: open
title: BaseEventLoop.create_server does not accept port=None
versions: Python 3.4, Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue27415>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to