diff --git a/core/conditionvariable/broadcast_spec.rb b/core/conditionvariable/broadcast_spec.rb index d88159df23..55a7b89c72 100644 --- a/core/conditionvariable/broadcast_spec.rb +++ b/core/conditionvariable/broadcast_spec.rb @@ -1,5 +1,4 @@ require_relative '../../spec_helper' -require 'thread' describe "ConditionVariable#broadcast" do it "releases all threads waiting in line for this resource" do diff --git a/core/conditionvariable/marshal_dump_spec.rb b/core/conditionvariable/marshal_dump_spec.rb index f951a13e28..88b1cc38c1 100644 --- a/core/conditionvariable/marshal_dump_spec.rb +++ b/core/conditionvariable/marshal_dump_spec.rb @@ -1,5 +1,4 @@ require_relative '../../spec_helper' -require 'thread' describe "ConditionVariable#marshal_dump" do it "raises a TypeError" do diff --git a/core/conditionvariable/signal_spec.rb b/core/conditionvariable/signal_spec.rb index 86383073f1..43a9cc611b 100644 --- a/core/conditionvariable/signal_spec.rb +++ b/core/conditionvariable/signal_spec.rb @@ -1,5 +1,4 @@ require_relative '../../spec_helper' -require 'thread' describe "ConditionVariable#signal" do it "releases the first thread waiting in line for this resource" do diff --git a/core/conditionvariable/wait_spec.rb b/core/conditionvariable/wait_spec.rb index 9a68c2b5a1..fe73e513c0 100644 --- a/core/conditionvariable/wait_spec.rb +++ b/core/conditionvariable/wait_spec.rb @@ -1,5 +1,4 @@ require_relative '../../spec_helper' -require 'thread' describe "ConditionVariable#wait" do it "calls #sleep on the given object" do diff --git a/core/module/autoload_spec.rb b/core/module/autoload_spec.rb index af04ab26c8..326dbda94f 100644 --- a/core/module/autoload_spec.rb +++ b/core/module/autoload_spec.rb @@ -1,7 +1,6 @@ require_relative '../../spec_helper' require_relative '../../fixtures/code_loading' require_relative 'fixtures/classes' -require 'thread' describe "Module#autoload?" do it "returns the name of the file that will be autoloaded" do diff --git a/core/process/fixtures/kill.rb b/core/process/fixtures/kill.rb index 0b88f8ee1f..b922a043f1 100644 --- a/core/process/fixtures/kill.rb +++ b/core/process/fixtures/kill.rb @@ -1,5 +1,3 @@ -require 'thread' - pid_file = ARGV.shift scenario = ARGV.shift diff --git a/library/objectspace/reachable_objects_from_spec.rb b/library/objectspace/reachable_objects_from_spec.rb index 7e70bc8569..dee5961663 100644 --- a/library/objectspace/reachable_objects_from_spec.rb +++ b/library/objectspace/reachable_objects_from_spec.rb @@ -38,7 +38,6 @@ end it "finds an object stored in a Queue" do - require 'thread' o = Object.new q = Queue.new q << o @@ -49,7 +48,6 @@ end it "finds an object stored in a SizedQueue" do - require 'thread' o = Object.new q = SizedQueue.new(3) q << o