New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test.test_ssl.TestEnumerations is not run #89348
Comments
test.test_ssl.TestEnumerations is not run when run ssl tests. If add it to the list of test classes it fails: ====================================================================== Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_ssl.py", line 4981, in test_options
enum._test_simple_enum(CheckedOptions, ssl.Options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/serhiy/py/cpython/Lib/enum.py", line 1803, in _test_simple_enum
raise TypeError('enum mismatch:\n %s' % '\n '.join(failed))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: enum mismatch:
'_use_args_':
checked -> False
simple -> True
'__format__': checked -> <function Enum.__format__ at 0x7f18691815a0> simple -> <function IntFlag.__format__ at 0x7f1869182620>
'__getnewargs__': checked -> None simple -> <method '__getnewargs__' of 'int' objects> ====================================================================== Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_ssl.py", line 4998, in test_sslerrornumber
enum._test_simple_enum(Checked_SSLMethod, ssl._SSLMethod)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/serhiy/py/cpython/Lib/enum.py", line 1803, in _test_simple_enum
raise TypeError('enum mismatch:\n %s' % '\n '.join(failed))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: enum mismatch:
extra key: 'PROTOCOL_SSLv23' ====================================================================== Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_ssl.py", line 4973, in test_sslmethod
enum._test_simple_enum(Checked_SSLMethod, ssl._SSLMethod)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/serhiy/py/cpython/Lib/enum.py", line 1803, in _test_simple_enum
raise TypeError('enum mismatch:\n %s' % '\n '.join(failed))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: enum mismatch:
extra key: 'PROTOCOL_SSLv23' ====================================================================== Traceback (most recent call last):
File "/home/serhiy/py/cpython/Lib/test/test_ssl.py", line 5002, in test_verifyflags
enum.FlagEnum, 'VerifyFlags', 'ssl',
^^^^^^^^^^^^^
AttributeError: module 'enum' has no attribute 'FlagEnum' |
Looks like I will try to enable it and fix failures. |
Thank you Nikita! The test was added in bpo-38659 and was not backported, so it is 3.11 only issue. |
TestEnumerations
intest_ssl
#28330Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: