From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.0 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 243AF207EC for ; Tue, 27 Sep 2016 02:21:48 +0000 (UTC) From: Eric Wong To: raindrops-public@bogomips.org Subject: [PATCH] test_inet_diag_socket: fix Fixnum deprecation warning Date: Tue, 27 Sep 2016 02:21:48 +0000 Message-Id: <20160927022148.7014-1-e@80x24.org> List-Id: Ruby 2.4 will unify Fixnum and Bignum. --- test/test_inet_diag_socket.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test_inet_diag_socket.rb b/test/test_inet_diag_socket.rb index 047dff3..a8c9973 100644 --- a/test/test_inet_diag_socket.rb +++ b/test/test_inet_diag_socket.rb @@ -8,7 +8,7 @@ class TestInetDiagSocket < Test::Unit::TestCase def test_new sock = Raindrops::InetDiagSocket.new assert_kind_of Socket, sock - assert_kind_of Fixnum, sock.fileno + assert_kind_of Integer, sock.fileno flags = sock.fcntl(Fcntl::F_GETFD) assert_equal Fcntl::FD_CLOEXEC, flags & Fcntl::FD_CLOEXEC assert_nil sock.close -- EW