summaryrefslogtreecommitdiff
path: root/systemd/test/test_daemon.py
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-08-16 12:20:44 +0200
committerGitHub <noreply@github.com>2022-08-16 12:20:44 +0200
commit8360d1d01cf0e0064238c539d2fb4e47a29c65f2 (patch)
tree2a76c84ec4c8a7fa17e94330105fd791f5d8d051 /systemd/test/test_daemon.py
parent6320847472657fc2b4f98dd5bfeb4c826ed68a06 (diff)
parentc5f8b887bef5c11908913168ad566aa1bc07166e (diff)
downloadpython-systemd-8360d1d01cf0e0064238c539d2fb4e47a29c65f2.tar.gz
Merge pull request #117 from keszybz/python2-compat
Compat with python2
Diffstat (limited to 'systemd/test/test_daemon.py')
-rw-r--r--systemd/test/test_daemon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/systemd/test/test_daemon.py b/systemd/test/test_daemon.py
index ac782f9..d2eb10f 100644
--- a/systemd/test/test_daemon.py
+++ b/systemd/test/test_daemon.py
@@ -353,7 +353,7 @@ def test_daemon_notify_memleak():
try:
notify('', True, 0, fds)
- except ConnectionRefusedError:
+ except connection_error:
pass
assert sys.getrefcount(fd) <= ref_cnt, 'leak'