summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-08-16 10:34:25 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2022-08-16 11:03:09 +0200
commitba9d9f89104a26a410e1eb9e371d366ef2702c35 (patch)
tree886325b8278306aba71662b897f44610bdc9a6f3
parent872ce304a07bb4c1b4fc06b7bfbd9220652c3793 (diff)
downloadpython-systemd-ba9d9f89104a26a410e1eb9e371d366ef2702c35.tar.gz
tests: python2-compat in another place
-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'