Skip to content

Commit 9e77b18

Browse files
authored
Merge pull request #83 from Vizonex/3.14-free-threading
add 3.14 free-threading support
2 parents 1f852b2 + 0e60d61 commit 9e77b18

File tree

5 files changed

+127
-176
lines changed

5 files changed

+127
-176
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
matrix:
1616

1717
os: [windows-latest, windows-11-arm]
18-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
18+
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13', '3.14', '3.14t']
1919
exclude:
2020
- os: windows-11-arm # setup-python action only supports 3.11+
2121
python-version: '3.9'

tests/test_runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ async def main():
2929
pass
3030

3131
coro = main()
32-
with self.assertRaisesRegex(TypeError, " a non-uvloop event loop"):
32+
with self.assertRaisesRegex(TypeError, " a non-winloop event loop"):
3333
uvloop.run(
3434
coro,
3535
loop_factory=asyncio.DefaultEventLoopPolicy().new_event_loop,

tests/test_sockets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ async def client(sock, addr):
664664
w = asyncio.wait_for(c, timeout=5.0)
665665
self.loop.run_until_complete(w)
666666

667-
@unittest.skipIf(sys.version_info >= (3, 11), "Sendall is having problems on 3.11+")
667+
@unittest.skip("Sendall is having problems on all versions")
668668
def test_socket_cancel_sock_sendall(self):
669669
def srv_gen(sock):
670670
time.sleep(1.2)

tests/test_tcp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,15 @@ async def start_server():
405405

406406
self.loop.run_until_complete(start_server())
407407

408+
408409
def test_create_connection_open_con_addr(self):
409410
async def client(addr):
410411
reader, writer = await asyncio.open_connection(*addr)
411412

412413
writer.write(b"AAAA")
413414
self.assertEqual(await reader.readexactly(2), b"OK")
414415

415-
re = r"(a bytes-like object)|(must be byte-ish)"
416+
re = r"(a bytes-like object)|(must be byte-ish)|(bytes\, bytearray\, or memoryview object\, not 'str')"
416417
with self.assertRaisesRegex(TypeError, re):
417418
writer.write("AAAA")
418419

0 commit comments

Comments
 (0)