From bd271d9269c6b45e3ad79b4489727cb1583a93e6 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Sun, 19 Feb 2017 18:26:09 -0500 Subject: [PATCH] Skip a test if run as root, as can happen with GL shared runners --- src/mailman/app/tests/test_lifecycle.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mailman/app/tests/test_lifecycle.py b/src/mailman/app/tests/test_lifecycle.py index 4a85cd229..f504e3dfd 100644 --- a/src/mailman/app/tests/test_lifecycle.py +++ b/src/mailman/app/tests/test_lifecycle.py @@ -44,6 +44,7 @@ class TestLifecycle(unittest.TestCase): self.assertRaises(BadDomainSpecificationError, create_list, 'test@nodomain.example.org') + @unittest.skipIf(os.getuid() == 0, 'Cannot run as root') def test_remove_list_error(self): # An error occurs while deleting the list's data directory. mlist = create_list('test@example.com') -- 2.11.4.GIT