Skip to content

Commit

Permalink
socket.error, not socket.SocketError
Browse files Browse the repository at this point in the history
  • Loading branch information
musicinmybrain committed Dec 3, 2022
1 parent 6af55f2 commit d40e4cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ZConfig/components/logger/tests/test_logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ def test_with_syslog(self):
syslog.close() # avoid ResourceWarning
try:
syslog.socket.close() # ResourceWarning under 3.2
except socket.SocketError: # pragma: no cover
except socket.error: # pragma: no cover
pass

def test_with_http_logger_localhost(self):
Expand Down

0 comments on commit d40e4cc

Please sign in to comment.