Skip to content

Hypothesis for Python - version 6.118.0

Compare
Choose a tag to compare
@Zac-HD Zac-HD released this 08 Nov 01:26
· 112 commits to master since this release

The "urls()" strategy no longer generates URLs where the port number
is 0.

This change is motivated by the idea that the generated URLs should,
at least in theory, be possible to fetch. The port number 0 is
special; if a server binds to port 0, the kernel will allocate an
unused, and non-zero, port instead. That means that it's not possible
for a server to actually be listening on port 0. This motivation is
briefly described in the documentation for "urls()".

Fixes issue #4157.

Thanks to @gmacon for this contribution!

The canonical version of these notes (with links) is on readthedocs.