Skip to content
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 failure on Python 3.12 #28

Open
fabaff opened this issue May 23, 2024 · 0 comments
Open

Test failure on Python 3.12 #28

fabaff opened this issue May 23, 2024 · 0 comments

Comments

@fabaff
Copy link

fabaff commented May 23, 2024

Tests work Python 3.11 but not on Python 3.12.

============================= test session starts ==============================
platform linux -- Python 3.12.3, pytest-8.1.1, pluggy-1.4.0
rootdir: /build/source
collected 84 items                                                             

tests/test_aiosasl.py .....FFF......F.....FFFF.............F....FF.F.... [ 59%]
F....F....                                                               [ 71%]
tests/test_channel_binding_methods.py .........                          [ 82%]
tests/test_stringprep.py ..............                                  [ 98%]
tests/test_unicode_version.py .                                          [100%]

=================================== FAILURES ===================================
_______________ TestSASLStateMachine.test_reject_double_initiate _______________

self = <test_aiosasl.TestSASLStateMachine testMethod=test_reject_double_initiate>

    def test_reject_double_initiate(self):
        run_coroutine(self.sm.initiate("foo", b"bar"))
    
>       with self.assertRaisesRegexp(RuntimeError,
                                     "has already been called"):
E                                    AttributeError: 'TestSASLStateMachine' object has no attribute 'assertRaisesRegexp'. Did you mean: 'assertRaisesRegex'?

tests/test_aiosasl.py:184: AttributeError
_________ TestSASLStateMachine.test_reject_double_initiate_after_error _________

self = <test_aiosasl.TestSASLStateMachine testMethod=test_reject_double_initiate_after_error>

    def test_reject_double_initiate_after_error(self):
        opaque_error = object()
        self.intf.initiate.side_effect = aiosasl.SASLFailure(
            opaque_error
[...]
'assertRaisesRegexp'. D...
FAILED tests/test_aiosasl.py::TestSCRAM::test_reject_protocol_violation_2 - AttributeError: 'TestSCRAM' object has no attribute 'assertRaisesRegexp'. D...
FAILED tests/test_aiosasl.py::TestSCRAM::test_too_low_iteration_count - AttributeError: 'TestSCRAM' object has no attribute 'assertRaisesRegexp'. D...
FAILED tests/test_aiosasl.py::TestSCRAMPLUS::test_incorrect_nonce - AttributeError: 'TestSCRAMPLUS' object has no attribute 'assertRaisesRegexp...
FAILED tests/test_aiosasl.py::TestSCRAMPLUS::test_reject_protocol_violation - AttributeError: 'TestSCRAMPLUS' object has no attribute 'assertRaisesRegexp...
=================== 14 failed, 70 passed, 1 warning in 0.41s ===================
github-actions bot pushed a commit to NixOS/nixpkgs that referenced this issue May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant