Fix patch

This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2020-11-12 17:21:10 +01:00
parent 150fcb9d43
commit d66bc819f7

View File

@ -1,4 +1,4 @@
From 3757c7199b46bb4ac0f14512b3a8eb737a086a47 Mon Sep 17 00:00:00 2001 From 21e0cee30e5550cd6c9afa8c4cdedbcfdfca8480 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl> From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
Date: Thu, 12 Nov 2020 17:08:02 +0100 Date: Thu, 12 Nov 2020 17:08:02 +0100
Subject: [PATCH] test: make sure $NOTIFY_SOCKET is unset in test Subject: [PATCH] test: make sure $NOTIFY_SOCKET is unset in test
@ -11,14 +11,14 @@ we get a permission error.
1 file changed, 2 insertions(+) 1 file changed, 2 insertions(+)
diff --git a/systemd/test/test_daemon.py b/systemd/test/test_daemon.py diff --git a/systemd/test/test_daemon.py b/systemd/test/test_daemon.py
index 1ddb55e94d..425a1bcfc0 100644 index 1ddb55e94d..ff9e086e72 100644
--- a/systemd/test/test_daemon.py --- a/systemd/test/test_daemon.py
+++ b/systemd/test/test_daemon.py +++ b/systemd/test/test_daemon.py
@@ -257,6 +257,8 @@ def test_listen_fds_default_unset(): @@ -257,6 +257,8 @@ def test_listen_fds_default_unset():
assert listen_fds() == [] assert listen_fds() == []
def test_notify_no_socket(): def test_notify_no_socket():
+ del os.environ['NOTIFY_SOCKET'] + os.environ.pop('NOTIFY_SOCKET', None)
+ +
assert notify('READY=1') is False assert notify('READY=1') is False
with skip_enosys(): with skip_enosys():