github HypothesisWorks/hypothesis hypothesis-python-6.118.0
Hypothesis for Python - version 6.118.0

10 hours ago

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.

Don't miss a new hypothesis release

NewReleases is sending notifications on new releases.