diff --git a/plinth/modules/users/tests/test_actions.py b/plinth/modules/users/tests/test_actions.py index 24b441a2c..3d2a086c5 100644 --- a/plinth/modules/users/tests/test_actions.py +++ b/plinth/modules/users/tests/test_actions.py @@ -101,6 +101,8 @@ def fixture_disable_restricted_access(needs_root, load_cfg): security.set_restricted_access(False) yield security.set_restricted_access(True) + else: + yield @pytest.fixture(name='auto_cleanup_users_groups', autouse=True)