Skip to content

Commit 7a17350

Browse files
committed
fix and debug
1 parent cfab9f8 commit 7a17350

File tree

2 files changed

+22
-18
lines changed

2 files changed

+22
-18
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,15 +20,15 @@ jobs:
2020
fail-fast: false
2121
matrix:
2222
os: [ubuntu-latest, macos-latest]
23-
cibw_python:
24-
- "cp38-*"
25-
- "cp39-*"
26-
- "cp310-*"
27-
- "cp311-*"
28-
- "cp312-*"
29-
- "cp313-*"
30-
- "cp314-*"
31-
- "cp314t-*"
23+
python:
24+
- "cp38"
25+
- "cp39"
26+
- "cp310"
27+
- "cp311"
28+
- "cp312"
29+
- "cp313"
30+
- "cp314"
31+
- "cp314t"
3232
cibw_arch: ["x86_64", "aarch64", "universal2"]
3333
exclude:
3434
- os: ubuntu-latest
@@ -63,11 +63,11 @@ jobs:
6363
- uses: pypa/cibuildwheel@7c619efba910c04005a835b110b057fc28fd6e93 # v3.2.0
6464
env:
6565
CIBW_BUILD_VERBOSITY: 1
66-
CIBW_BUILD: ${{ matrix.cibw_python }}
66+
CIBW_BUILD: ${{ matrix.python }}-*
6767
CIBW_ARCHS: ${{ matrix.cibw_arch }}
6868
CIBW_TEST_SKIP: "*universal2:arm64"
6969

7070
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7171
with:
72-
name: dist-wheels
72+
name: dist-wheels-${{ matrix.os }}-${{ matrix.python }}-${{ matrix.cibw_arch }}
7373
path: wheelhouse/*.whl

tests/test_dns.py

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import asyncio
22
import socket
3+
import sys
34
import unittest
45

56
from uvloop import _testbase as tb
@@ -54,20 +55,23 @@ def _test_getaddrinfo(self, *args, _patch=False, _sorted=False, **kwargs):
5455

5556
if _sorted:
5657
if kwargs.get('flags', 0) & socket.AI_CANONNAME and a1 and a2:
57-
af, sk, proto, canon_name1, addr = a1[0]
58-
a1[0] = (af, sk, proto, '', addr)
59-
af, sk, proto, canon_name2, addr = a2[0]
60-
a2[0] = (af, sk, proto, '', addr)
61-
self.assertEqual(canon_name1, canon_name2)
58+
self.assertEqual(a1[0][3], a2[0][3])
59+
a1 = [(af, sk, pr, addr) for af, sk, pr, _, addr in a1]
60+
a2 = [(af, sk, pr, addr) for af, sk, pr, _, addr in a2]
6261

6362
try:
6463
self.assertEqual(sorted(a1), sorted(a2))
6564
except AssertionError:
6665
for x, y in zip(sorted(a1), sorted(a2)):
67-
print(x, '\t', y)
66+
print(x, '\t', y, file=sys.stderr)
6867
raise
6968
else:
70-
self.assertEqual(a1, a2)
69+
try:
70+
self.assertEqual(a1, a2)
71+
except AssertionError:
72+
for x, y in zip(a1, a2):
73+
print(x, '\t', y, file=sys.stderr)
74+
raise
7175

7276
def _test_getnameinfo(self, *args, **kwargs):
7377
err = None

0 commit comments

Comments
 (0)