Skip to content

Commit

Permalink
Remove unstable behaviour of Thread.to_enum(:each_caller_location).next
Browse files Browse the repository at this point in the history
  • Loading branch information
itarato committed Jun 23, 2023
1 parent 2110c9c commit 4a4208d
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions core/thread/each_caller_location_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@
Thread.each_caller_location {}.should == nil
end

it "cannot be iterated with an external iterator" do
-> {
Thread.to_enum(:each_caller_location).next
}.should raise_error(StopIteration, "iteration reached an end")
end

it "raises LocalJumpError when called without a block" do
-> {
Thread.each_caller_location
Expand Down

0 comments on commit 4a4208d

Please sign in to comment.