Closed
Description
Bug report
MINIMUM_SUPPORTED
and MAXIMUM_SUPPORTED
of ssl.TLSVersion
are set to incorrect values -2
and -1
for some reason.
Your environment
I reproduced this with CPython 3.9.13 and 3.10.5 built using pyenv on Ubuntu 20.04; the main branch build using ./configure && make -j6
on Ubuntu 20.04; and with Python 3.10 on Fedora 36.
$ docker run --rm -it fedora:36 sh -c "dnf install python3.10 && python3.10 -c 'import ssl; print(ssl.TLSVersion.MAXIMUM_SUPPORTED.value, ssl.TLSVersion.MINIMUM_SUPPORTED.value)'"
Fedora 36 - x86_64 6.1 MB/s | 81 MB 00:13
Fedora 36 openh264 (From Cisco) - x86_64 2.1 kB/s | 2.5 kB 00:01
Fedora Modular 36 - x86_64 2.6 MB/s | 2.4 MB 00:00
Fedora 36 - x86_64 - Updates 5.8 MB/s | 17 MB 00:02
Fedora Modular 36 - x86_64 - Updates 1.6 MB/s | 2.2 MB 00:01
Package python3-3.10.4-1.fc36.x86_64 is already installed.
Dependencies resolved.
Nothing to do.
Complete!
-1 -2