Skip to content

Commit

Permalink
Fix parameter name not supported by Cython 3
Browse files Browse the repository at this point in the history
Cython 3 stops supporting mangles parameters starting with `__`
to reflect python behavior - see: cython/cython@abeb082
  • Loading branch information
Matus Valo authored and Matus Valo committed Aug 14, 2023
1 parent 1a27d40 commit b4cbb72
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/test_process.py
Expand Up @@ -916,7 +916,7 @@ def test_process_delayed_stdio__paused__stdin_pipe(self):
stdin=subprocess.PIPE,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
__uvloop_sleep_after_fork=True))
_uvloop_sleep_after_fork=True))
self.assertIsNot(transport, None)
self.assertEqual(transport.get_returncode(), 0)
self.assertEqual(
Expand All @@ -935,7 +935,7 @@ def test_process_delayed_stdio__paused__no_stdin(self):
stdin=None,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
__uvloop_sleep_after_fork=True))
_uvloop_sleep_after_fork=True))
self.assertIsNot(transport, None)
self.assertEqual(transport.get_returncode(), 0)
self.assertEqual(
Expand Down
4 changes: 2 additions & 2 deletions uvloop/loop.pyx
Expand Up @@ -2750,7 +2750,7 @@ cdef class Loop:
executable=None,
pass_fds=(),
# For tests only! Do not use in your code. Ever.
__uvloop_sleep_after_fork=False):
_uvloop_sleep_after_fork=False):

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

if __uvloop_sleep_after_fork:
if _uvloop_sleep_after_fork:
debug_flags |= __PROCESS_DEBUG_SLEEP_AFTER_FORK

waiter = self._new_future()
Expand Down

0 comments on commit b4cbb72

Please sign in to comment.