Skip to content

Commit aa78be3

Browse files
committed
test_conn fixup for py2
1 parent e7437e1 commit aa78be3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_conn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def test_connection_delay(conn, mocker):
9090
conn.state = ConnectionStates.CONNECTED
9191
assert conn.connection_delay() == float('inf')
9292

93-
conn._gai.clear()
93+
del conn._gai[:]
9494
conn._update_reconnect_backoff()
9595
conn.state = ConnectionStates.DISCONNECTED
9696
assert conn.connection_delay() == 1.0 * conn.config['reconnect_backoff_ms']

0 commit comments

Comments
 (0)