def test_set_shutdown_long(self):
"""
On Python 2 `Connection.set_shutdown` accepts an argument
of type `long` as well as `int`.
"""
connection = Connection(Context(TLSv1_METHOD), socket())
connection.set_shutdown(long(RECEIVED_SHUTDOWN))
assert connection.get_shutdown() == RECEIVED_SHUTDOWN
评论列表
文章目录