From 6ddae5da78e536ed3cbb33d948fb9e33e98d6036 Mon Sep 17 00:00:00 2001 From: Charlie Savage Date: Sat, 6 Jan 2024 21:59:50 -0800 Subject: [PATCH] Test fixes. --- test/exclude_methods_test.rb | 2 +- test/line_number_test.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/exclude_methods_test.rb b/test/exclude_methods_test.rb index f40c950c..af373d3b 100644 --- a/test/exclude_methods_test.rb +++ b/test/exclude_methods_test.rb @@ -34,7 +34,7 @@ def self.f end class ExcludeMethodsTest < TestCase - if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.2') + if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('3.3') def test_methods_can_be_profiled obj = ExcludeMethodsClass.new prf = RubyProf::Profile.new(measure_mode: RubyProf::WALL_TIME) diff --git a/test/line_number_test.rb b/test/line_number_test.rb index 9c3bb32a..098c3493 100644 --- a/test/line_number_test.rb +++ b/test/line_number_test.rb @@ -130,7 +130,7 @@ def test_function_line_no assert_equal(1, method.call_trees.callees.count) call_tree = method.call_trees.callees[0] assert_equal('LineNumbers#method_1', call_tree.target.full_name) - assert_equal(35, call_tree.line) + assert_equal(36, call_tree.line) end else def test_function_line_no