Skip to content

Commit e8a3578

Browse files
Test PyPy (#23)
* Test PyPy * Check if socket already closed
1 parent 8a773bc commit e8a3578

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,15 @@ jobs:
1414
strategy:
1515
matrix:
1616
os: [ubuntu-latest, windows-latest, macos-latest]
17-
python-version: [ '3.9', '3.10', '3.11', '3.12', '3.13' ]
17+
python-version:
18+
- '3.9'
19+
- '3.10'
20+
- '3.11'
21+
- '3.12'
22+
- '3.13'
23+
- 'pypy-3.9'
24+
- 'pypy-3.10'
25+
- 'pypy-3.11'
1826

1927
steps:
2028
- name: Checkout repository

tests/conftest.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import os
22
import signal
3-
import socket
43
from threading import Thread
54

65
import zmq
@@ -76,7 +75,8 @@ def sockets(contexts):
7675

7776
# close sockets
7877
for socket in sockets:
79-
socket.close(linger=0)
78+
if not socket.closed:
79+
socket.close(linger=0)
8080

8181

8282
@pytest.fixture

0 commit comments

Comments
 (0)