summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_simple.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_simple.py b/tests/test_simple.py
index e3d0fd9..8d87dae 100644
--- a/tests/test_simple.py
+++ b/tests/test_simple.py
@@ -152,8 +152,7 @@ class UnshareIdmapTest(unittest.TestCase):
pid = os.getpid()
@linuxnamespaces.run_in_fork
def setup() -> None:
- linuxnamespaces.newgidmap(pid, [gidmap])
- linuxnamespaces.newuidmap(pid, [uidmap])
+ linuxnamespaces.newidmaps(pid, [uidmap], [gidmap])
linuxnamespaces.unshare(linuxnamespaces.CloneFlags.NEWUSER)
setup()
self.assertEqual(os.getuid(), overflowuid)
@@ -174,8 +173,7 @@ class UnshareIdmapTest(unittest.TestCase):
pid = os.getpid()
@linuxnamespaces.run_in_fork
def setup() -> None:
- linuxnamespaces.newgidmap(pid, [gidmap])
- linuxnamespaces.newuidmap(pid, [uidmap])
+ linuxnamespaces.newidmaps(pid, [uidmap], [gidmap])
linuxnamespaces.unshare(
linuxnamespaces.CloneFlags.NEWUSER
| linuxnamespaces.CloneFlags.NEWNS