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: AS4713 221.184.0.0/13 X-Spam-Status: No, score=-2.8 required=3.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,SPF_PASS, T_DKIM_INVALID shortcircuit=no autolearn=no autolearn_force=no version=3.4.0 Received: from neon.ruby-lang.org (neon.ruby-lang.org [221.186.184.75]) by dcvr.yhbt.net (Postfix) with ESMTP id 97794208DB for ; Tue, 29 Aug 2017 08:14:44 +0000 (UTC) Received: from neon.ruby-lang.org (localhost [IPv6:::1]) by neon.ruby-lang.org (Postfix) with ESMTP id B1BFE1208CF; Tue, 29 Aug 2017 17:14:41 +0900 (JST) Received: from o1678948x4.outbound-mail.sendgrid.net (o1678948x4.outbound-mail.sendgrid.net [167.89.48.4]) by neon.ruby-lang.org (Postfix) with ESMTPS id 0ED82120868 for ; Tue, 29 Aug 2017 17:14:38 +0900 (JST) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=sendgrid.me; h=from:to:references:subject:mime-version:content-type:content-transfer-encoding:list-id; s=smtpapi; bh=aLUqDjueY7jtuKuV82ylJYRxpEw=; b=QX4/SFUrN7tgHzM4Kf MxHJiu9HKBI2WMDFT28A3BjFC5mjarMv0r2hVEvixx4JIXQobXg4kdMlau6kDulZ kUjTzcdVMMzrr9zAOs1bttduzQN2rjpzAOBEl0Y/TrOiOdBCfENZ9zsDknHAFa3I 4RaEzazFw3hJgMfB04QqDuvyo= Received: by filter0005p3mdw1.sendgrid.net with SMTP id filter0005p3mdw1-4447-59A52269-1E 2017-08-29 08:14:33.924940566 +0000 UTC Received: from herokuapp.com (ec2-54-80-247-41.compute-1.amazonaws.com [54.80.247.41]) by ismtpd0023p1mdw1.sendgrid.net (SG) with ESMTP id 0aR9o3J2TAKe_4OPKGKooA for ; Tue, 29 Aug 2017 08:14:34.029 +0000 (UTC) Date: Tue, 29 Aug 2017 08:14:35 +0000 (UTC) From: glass.saga@gmail.com To: ruby-core@ruby-lang.org Message-ID: References: Mime-Version: 1.0 X-Redmine-MailingListIntegration-Message-Ids: 57553 X-Redmine-Project: ruby-trunk X-Redmine-Issue-Id: 13652 X-Redmine-Issue-Author: derekzwy X-Redmine-Sender: Glass_saga X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-SG-EID: ync6xU2WACa70kv/Ymy4QrNMhiuLXJG8OTL2vJD1yS5/AT/UFYRpdpcwnzzJ2pGsOlVypL89BwBIL/ CHlH8w9sV8aWEBc3XQLsymUnQ8pFpc4Nc4KoeI2YYxhepWv26LIHiHHjvbTN1Dy8eBUZ38mhvoS0BE mWB+wehEvuo2EkVJrzoUAEmzMhoCKxCCFDTh1HxnZ5NXwtAn7ZvXXbk4Sw== X-ML-Name: ruby-core X-Mail-Count: 82501 Subject: [ruby-core:82501] [Ruby trunk Bug#13652][Rejected] Ruby 2.3.4 does not catch Argument error when comparing DateTime with String X-BeenThere: ruby-core@ruby-lang.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Ruby developers List-Id: Ruby developers List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ruby-core-bounces@ruby-lang.org Sender: "ruby-core" Issue #13652 has been updated by Glass_saga (Masaki Matsushita). Status changed from Open to Rejected It can't be reproduced. ``` % ruby -v -r "date" -e "p DateTime.parse == 'No End Date'" ruby 2.5.0dev (2017-08-29 trunk 59656) [x86_64-darwin15] false ``` ---------------------------------------- Bug #13652: Ruby 2.3.4 does not catch Argument error when comparing DateTime with String https://bugs.ruby-lang.org/issues/13652#change-66310 * Author: derekzwy (Wenyuan Zhang) * Status: Rejected * Priority: Normal * Assignee: * Target version: * ruby -v: 2.3.4 * Backport: 2.2: UNKNOWN, 2.3: UNKNOWN, 2.4: UNKNOWN ---------------------------------------- Ruby 2.3.4 does not catch Argument error when comparing DateTime with String, while Ruby 2.1.5 catches it and return false. ---Files-------------------------------- ruby 2.3.4.png (168 KB) ruby 2.1.5.png (133 KB) -- https://bugs.ruby-lang.org/