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

[Bug] Regression on Python 3.14.0a1: TestAuthCodeReceiver.test_no_two_concurrent_receivers_can_listen_on_same_port fails #768

Open
musicinmybrain opened this issue Nov 10, 2024 · 1 comment

Comments

@musicinmybrain
Copy link
Contributor

Describe the bug
With Python 3.14.0a1, TestAuthCodeReceiver.test_no_two_concurrent_receivers_can_listen_on_same_port fails.

To Reproduce
Steps to reproduce the behavior:

$ python3.14 --version
Python 3.14.0a1
$ python3.14 -m venv _e
$ . _e/bin/activate
(_e) $ pip install -e .
(_e) $ pip install -r requirements.txt
(_e) $ python -m pytest

Expected behavior
All tests pass.

What you see instead

========================================================================================== short test summary info ==========================================================================================
FAILED tests/test_authcode.py::TestAuthCodeReceiver::test_no_two_concurrent_receivers_can_listen_on_same_port - AssertionError: OSError not raised
========================================================================== 1 failed, 151 passed, 70 skipped, 42 warnings in 45.61s ==========================================================================

The MSAL Python version you are using

7db6c2c

1.31.0

Additional context

Detailed test output:

================================================================================================= FAILURES ==================================================================================================
_______________________________________________________________ TestAuthCodeReceiver.test_no_two_concurrent_receivers_can_listen_on_same_port _______________________________________________________________

self = <tests.test_authcode.TestAuthCodeReceiver testMethod=test_no_two_concurrent_receivers_can_listen_on_same_port>

    def test_no_two_concurrent_receivers_can_listen_on_same_port(self):
        with AuthCodeReceiver() as receiver:
            expected_error = OSError if sys.version_info[0] > 2 else socket.error
>           with self.assertRaises(expected_error):
E           AssertionError: OSError not raised

tests/test_authcode.py:24: AssertionError

If I repeat the same steps to reproduce using Python 3.13 instead of 3.14, all tests pass.

This was reported dowstream in Fedora Linux as part of early Python 3.14 testing.

@rayluo
Copy link
Collaborator

rayluo commented Nov 27, 2024

Waiting for outcome of python/cpython#127319

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants