Skip to content

Commit 3f0801c

Browse files
yut23keszybz
authored andcommitted
Fix test failure
One usage of `connection_error` got missed when dropping Python 2 support.
1 parent 684a6cc commit 3f0801c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

systemd/test/test_daemon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ def test_daemon_notify_memleak():
349349

350350
try:
351351
notify('', True, 0, fds)
352-
except connection_error:
352+
except ConnectionRefusedError:
353353
pass
354354

355355
assert sys.getrefcount(fd) <= ref_cnt, 'leak'

0 commit comments

Comments
 (0)