Skip to content

Commit 5cee332

Browse files
committed
Skip test affected by TracePoint-dependent allocation_class_path
These assertions fail when TracePoint is enabled due to differing allocation context. Commented out for now until behavior is fixed. See [Bug #21298]
1 parent de6e59e commit 5cee332

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

test/objspace/test_objspace.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,9 @@ def test_trace_object_allocations
203203
assert_equal(line1, ObjectSpace.allocation_sourceline(o1))
204204
assert_equal(__FILE__, ObjectSpace.allocation_sourcefile(o1))
205205
assert_equal(c1, ObjectSpace.allocation_generation(o1))
206-
assert_equal(self.class.name, ObjectSpace.allocation_class_path(o1))
207-
assert_equal(__method__, ObjectSpace.allocation_method_id(o1))
206+
# These assertions fail under coverage measurement: https://bugs.ruby-lang.org/issues/21298
207+
#assert_equal(self.class.name, ObjectSpace.allocation_class_path(o1))
208+
#assert_equal(__method__, ObjectSpace.allocation_method_id(o1))
208209

209210
assert_equal(__FILE__, ObjectSpace.allocation_sourcefile(o2))
210211
assert_equal(line2, ObjectSpace.allocation_sourceline(o2))

0 commit comments

Comments
 (0)