diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 43193ea50..a04edde9b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -65,11 +65,6 @@ jobs: - "pypy-3.10" is_main: - ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} - exclude: - - python: "pypy-3.9" - is_main: false - - python: "pypy-3.10" - is_main: false steps: - name: Check out repository uses: actions/checkout@v4 diff --git a/tests/asyncio/test_server.py b/tests/asyncio/test_server.py index fdcbf9780..0b88ad4f4 100644 --- a/tests/asyncio/test_server.py +++ b/tests/asyncio/test_server.py @@ -408,7 +408,7 @@ async def test_connection_closed_during_handshake(self): async def test_junk_handshake(self): """Server closes the connection when receiving non-HTTP request from client.""" - with self.assertLogs("websockets", logging.ERROR) as logs: + with self.assertLogs("websockets.server", logging.ERROR) as logs: async with serve(*args) as server: reader, writer = await asyncio.open_connection(*get_host_port(server)) writer.write(b"HELO relay.invalid\r\n") diff --git a/tests/sync/test_server.py b/tests/sync/test_server.py index 56565dab7..5ddb0a3ac 100644 --- a/tests/sync/test_server.py +++ b/tests/sync/test_server.py @@ -333,6 +333,14 @@ def handler(sock, addr): # Wait for the server thread to terminate. server_thread.join() + print() + for record in logs.records: + print(repr(record)) + import traceback + + traceback.print_exception(*record.exc_info) + print() + self.assertEqual( [record.getMessage() for record in logs.records], ["opening handshake failed"],