summaryrefslogtreecommitdiff
path: root/test/-ext-/gvl/test_last_thread.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-08 19:07:16 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2021-01-09 22:38:06 +0900
commit590dc06e3840cc7b00d80ccaac9fbf42573428f8 (patch)
treee5f6aa316246401b8d89e7419ddf0976238c04b5 /test/-ext-/gvl/test_last_thread.rb
parent161a20df28dd09ff35a32a7e2b7ce6cab7079707 (diff)
Get rid of defining methods for tests in core classes
Not to interfere in other tests.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4043
Diffstat (limited to 'test/-ext-/gvl/test_last_thread.rb')
-rw-r--r--test/-ext-/gvl/test_last_thread.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/-ext-/gvl/test_last_thread.rb b/test/-ext-/gvl/test_last_thread.rb
index 6808e963bf..f1bebafeea 100644
--- a/test/-ext-/gvl/test_last_thread.rb
+++ b/test/-ext-/gvl/test_last_thread.rb
@@ -11,7 +11,7 @@ class TestLastThread < Test::Unit::TestCase
}
t0 = Time.now
- Thread.current.__runnable_sleep__ 1
+ Bug::Thread.runnable_sleep 1
t1 = Time.now
t = t1 - t0