Skip to content

Commit b4cbb72

Browse files
Matus ValoMatus Valo
authored andcommitted
Fix parameter name not supported by Cython 3
Cython 3 stops supporting mangles parameters starting with `__` to reflect python behavior - see: cython/cython@abeb082
1 parent 1a27d40 commit b4cbb72

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

tests/test_process.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ def test_process_delayed_stdio__paused__stdin_pipe(self):
916916
stdin=subprocess.PIPE,
917917
stdout=subprocess.PIPE,
918918
stderr=subprocess.PIPE,
919-
__uvloop_sleep_after_fork=True))
919+
_uvloop_sleep_after_fork=True))
920920
self.assertIsNot(transport, None)
921921
self.assertEqual(transport.get_returncode(), 0)
922922
self.assertEqual(
@@ -935,7 +935,7 @@ def test_process_delayed_stdio__paused__no_stdin(self):
935935
stdin=None,
936936
stdout=subprocess.PIPE,
937937
stderr=subprocess.PIPE,
938-
__uvloop_sleep_after_fork=True))
938+
_uvloop_sleep_after_fork=True))
939939
self.assertIsNot(transport, None)
940940
self.assertEqual(transport.get_returncode(), 0)
941941
self.assertEqual(

uvloop/loop.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2750,7 +2750,7 @@ cdef class Loop:
27502750
executable=None,
27512751
pass_fds=(),
27522752
# For tests only! Do not use in your code. Ever.
2753-
__uvloop_sleep_after_fork=False):
2753+
_uvloop_sleep_after_fork=False):
27542754

27552755
# TODO: Implement close_fds (might not be very important in
27562756
# Python 3.5, since all FDs aren't inheritable by default.)
@@ -2770,7 +2770,7 @@ cdef class Loop:
27702770
if executable is not None:
27712771
args[0] = executable
27722772

2773-
if __uvloop_sleep_after_fork:
2773+
if _uvloop_sleep_after_fork:
27742774
debug_flags |= __PROCESS_DEBUG_SLEEP_AFTER_FORK
27752775

27762776
waiter = self._new_future()

0 commit comments

Comments
 (0)