From 76375ef872b23c7b0307eab2780ca0d30bf78d27 Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Thu, 12 Jun 2025 10:58:24 +0200 Subject: run_in_fork: allow starting the function immediately Doing so skips creating the EventFD. --- tests/test_simple.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_simple.py') diff --git a/tests/test_simple.py b/tests/test_simple.py index 2b5252f..38a253d 100644 --- a/tests/test_simple.py +++ b/tests/test_simple.py @@ -214,7 +214,7 @@ class UnshareTest(unittest.TestCase): | linuxnamespaces.CloneFlags.NEWPID ) linuxnamespaces.newuidmap(-1, [idmap], False) - @linuxnamespaces.run_in_fork + @linuxnamespaces.run_in_fork.now def setup() -> None: self.assertEqual(os.getpid(), 1) linuxnamespaces.mount("proc", "/proc", "proc") @@ -307,7 +307,7 @@ class UnshareIdmapTest(unittest.TestCase): os.setregid(0, 0) linuxnamespaces.mount("tmpfs", "/mnt", "tmpfs") os.mkdir("/mnt/dev") - @linuxnamespaces.run_in_fork + @linuxnamespaces.run_in_fork.now def test() -> None: linuxnamespaces.populate_dev("/", "/mnt") test() -- cgit v1.2.3