Skip to content

Commit 0a35c9f

Browse files
authored
Moved rest of the missing items back to stdlib.pxi (#6)
* add another branch to test on my end * force trigger workflow * reformat test_context with black * reformat all tests to obey flake8 * fix flake8 errors * add dns related things from winloop * try something that isn't invalid on 3.8 * reformat with black using valid 3.8 syntax and the 79 character limit * update setup.py * fix more formatting problems with test_process * uncomment trest_process_streams_pass_fds on windows * slience all other known to fail tests with windows * fix if statement for dns.pyx * silencing reamining failures * remove whitespace * update tests * update tests * skip signal test on apple for now * remove whitespace * reformat with black once more * mark todo for issue 126 (winloop) related * skip test_call_later_2 on windows normal asyncio in 3.11 due to rounding bug * reformat test_base.py * uvloop still has the same problem on windows 3.11 * siganls fork test broken * better skipping system for test_base.py * add extra removal to makefile * nope, 3.8+ on windows has the same problem wiht test_call_later_2 * add __Pyx_MonitoringEventTypes_CyGen_count as a macro incase accidently exposed in windows debug mode * skip create over ssl when in win32 3.14t it's currently a todo bugfix. * skip test_getaddrinfo_4 on mac, it can randomly freeze at different times. * fix subprocess shell code for window's end * update stdlib with os.path.join to help it out * add isabs to subprocess_shell * make outer modules used into constant values * forgot about errors.pyx let me fix that up real quickly * put more externals required into stdlib.pxi where they all belong
1 parent 2ccaf83 commit 0a35c9f

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

uvloop/errors.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import errno as win_errno
1+
22

33
cdef str __strerr(int errno):
44
return strerror(errno).decode()

uvloop/includes/stdlib.pxi

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@ cdef col_OrderedDict = collections.OrderedDict
5555
cdef cc_ThreadPoolExecutor = concurrent.futures.ThreadPoolExecutor
5656
cdef cc_Future = concurrent.futures.Future
5757

58+
# windows needs access to errno for exception handling.
59+
cdef win_errno = errno
60+
5861
cdef errno_EBADF = errno.EBADF
5962
cdef errno_EINVAL = errno.EINVAL
6063

uvloop/server.pyx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import asyncio
2-
31

42
cdef class Server:
53
def __cinit__(self, Loop loop):
@@ -113,7 +111,7 @@ cdef class Server:
113111

114112
try:
115113
await self._serving_forever_fut
116-
except asyncio.CancelledError:
114+
except aio_CancelledError:
117115
try:
118116
self.close()
119117
await self.wait_closed()

0 commit comments

Comments
 (0)