Skip to content

Commit b86f039

Browse files
Apply ruff/pyupgrade rule UP036
Version block is outdated for minimum Python version
1 parent f78e6e4 commit b86f039

1 file changed

Lines changed: 1 addition & 6 deletions

File tree

pynetdicom/tests/test_transport.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import socket
99
import ssl
1010
from struct import pack
11-
import sys
1211
import threading
1312
import time
1413
from unittest import mock
@@ -948,11 +947,7 @@ class DummyAE:
948947

949948
server.shutdown()
950949

951-
if sys.version_info[0] == 2:
952-
with pytest.raises(OSError):
953-
server.socket.fileno()
954-
else:
955-
assert server.socket.fileno() == -1
950+
assert server.socket.fileno() == -1
956951

957952
def test_blocking_process_request(self):
958953
"""Test AssociationServer.process_request."""

0 commit comments

Comments
 (0)