Open hroncok opened 7 months ago
Consequence of
asyncio.loop.create_unix_server() will now automatically remove the Unix socket when the server is closed. (Contributed by Pierre Ossman in https://github.com/python/cpython/issues/111246.)
?
cont.end() will close the server which will now remove the socket. Perhaps the last part of the test should just be dropped?
diff -rupN aiosmtpd-1.4.4.post2/aiosmtpd/tests/test_server.py aiosmtpd-1.4.4.post2-new/aiosmtpd/tests/test_server.py
--- aiosmtpd-1.4.4.post2/aiosmtpd/tests/test_server.py 2023-01-19 10:37:59.000000000 +0100
+++ aiosmtpd-1.4.4.post2-new/aiosmtpd/tests/test_server.py 2024-06-12 14:00:02.133043947 +0200
@@ -446,10 +446,6 @@ class TestUnthreaded:
# Stop the task
cont.end()
catchup_delay()
- # Now the listener has gone away
- # noinspection PyTypeChecker
- with pytest.raises((socket.timeout, ConnectionError)):
- assert_smtp_socket(cont)
@pytest.mark.filterwarnings(
"ignore::pytest.PytestUnraisableExceptionWarning"
Hello. In Fedora, we are trying to test our packages early with pre-releases of Python 3.13 to be prepared to upgrade to it in the development version of Fedora Linux 41. aiosmtpd fails a test.
To reproduce, I did this:
The changes were necessary to even run the tests with Python 3.13. pytest-profiling is not ready for 3.13 and conftest imports pkg_resources.
Then I run:
Or directly:
I got:
This is with: