upgpkg: wordpress 6.2.1-1
[ArchLinux/community.git] / python-prctl / trunk / skip-tests.diff
blobafb32f311f5ca15171f7333e72a75695536fd356
1 diff --git a/test_prctl.py b/test_prctl.py
2 index 3e01f2f..5e19855 100644
3 --- a/test_prctl.py
4 +++ b/test_prctl.py
5 @@ -279,6 +279,7 @@ class PrctlTest(unittest.TestCase):
6 os._exit(0)
7 self.assertRaises(OSError, prctl.set_ptracer, new_pid)
9 + @unittest.skip('systemd-nspawn uses seccomp')
10 @require('get_seccomp')
11 def test_seccomp(self):
12 """Test manipulation of the seccomp setting"""
13 @@ -323,6 +324,8 @@ class PrctlTest(unittest.TestCase):
14 prctl.securebits.noroot = True
15 self.assertRaises(OSError, set_true)
17 + # See https://github.com/seveas/python-prctl/issues/31
18 + @unittest.skip('not working in containers')
19 @require('set_speculation_ctrl')
20 def test_speculation_ctrl(self):
21 self.assertTrue(prctl.get_speculation_ctrl(prctl.SPEC_STORE_BYPASS) > 0)
22 @@ -388,6 +391,7 @@ class PrctlTest(unittest.TestCase):
23 self.assertRaises(OSError, prctl.get_unalign)
24 self.assertRaises(OSError, prctl.set_unalign, prctl.UNALIGN_NOPRINT)
26 + @unittest.skip('systemd-nspawn adds CAP_SETUID')
27 def test_getcaps(self):
28 """Test the get_caps function"""
29 self.assertEqual(prctl.get_caps(), {prctl.CAP_EFFECTIVE: {}, prctl.CAP_INHERITABLE: {}, prctl.CAP_PERMITTED: {}})
30 @@ -404,6 +408,7 @@ class PrctlTest(unittest.TestCase):
31 prctl.get_caps((1234,prctl.ALL_FLAGS))
32 self.assertRaises(ValueError, fail)
34 + @unittest.skip('systemd-nspawn adds CAP_SETUID')
35 def test_setcaps(self):
36 """Test the setcaps function"""
37 if self.am_root: