From 82092f4bb78a2e4b43652b2f1d77c87446f837b8 Mon Sep 17 00:00:00 2001 From: stomar Date: Sat, 20 May 2017 10:21:44 +0000 Subject: [PATCH] prime.rb: remove alias after timeout test * test/test_prime.rb: remove alias after timeout test. * lib/prime.rb: fix typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/prime.rb | 2 +- test/test_prime.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/prime.rb b/lib/prime.rb index 86db1957a3..2cd22da3a8 100644 --- a/lib/prime.rb +++ b/lib/prime.rb @@ -419,7 +419,7 @@ class Prime end end - # Internal use. An implementation of eratosthenes' sieve + # Internal use. An implementation of Eratosthenes' sieve class EratosthenesSieve include Singleton diff --git a/test/test_prime.rb b/test/test_prime.rb index fe847eb832..7ff07eeb6a 100644 --- a/test/test_prime.rb +++ b/test/test_prime.rb @@ -189,6 +189,7 @@ class TestPrime < Test::Unit::TestCase ensure class << Integer alias_method :sqrt, :org_sqrt + remove_method :org_sqrt end end