summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_simple.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_simple.py b/tests/test_simple.py
index 8d87dae..62facf5 100644
--- a/tests/test_simple.py
+++ b/tests/test_simple.py
@@ -68,9 +68,7 @@ class AsnycioTest(unittest.IsolatedAsyncioTestCase):
0, linuxnamespaces.EventFDFlags.NONBLOCK
) as efd:
fut = asyncio.ensure_future(efd.aread())
- @linuxnamespaces.async_run_in_fork
- def set_ready():
- efd.write()
+ set_ready = linuxnamespaces.async_run_in_fork(efd.write)
await asyncio.sleep(0.000001) # Let the loop run
self.assertFalse(fut.done())
await set_ready()