Skip to content
Closed

DEBUG #1498

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/asyncio/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
8 changes: 8 additions & 0 deletions tests/sync/test_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"],
Expand Down
Loading