summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-25 07:58:02 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-25 07:58:02 +0000
commit70c15b19fad88dd1e836b08e53194d04c9945db4 (patch)
tree7394e040e41dcf8b222f8ab80d22a24192397df6 /test
parentf414bfc6816b4af0056c3bbd716afea3d8a8eb9f (diff)
* test/lib/minitest/unit.rb: Use Thread.list instead of
ObjectSpace.each_object(Thread). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r--test/lib/minitest/unit.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb
index 49d3809cb9..f6176f403a 100644
--- a/test/lib/minitest/unit.rb
+++ b/test/lib/minitest/unit.rb
@@ -947,7 +947,7 @@ module MiniTest
end
def live_thread_and_tempfile
- live_threads = ObjectSpace.each_object(Thread).find_all {|t|
+ live_threads = Thread.list.find_all {|t|
t != Thread.current && t.alive?
}
if defined? Tempfile