Issue #10449 has been updated by Usaku NAKAMURA. Backport changed from 2.0.0: UNKNOWN, 2.1: REQUIRED, 2.2: DONTNEED to 2.0.0: UNKNOWN, 2.1: DONE, 2.2: DONTNEED ruby_2_1 r52640 merged revision(s) 48609. ---------------------------------------- Bug #10449: [TracePoint API] Duplicated line events when using parenthesis https://bugs.ruby-lang.org/issues/10449#change-54925 * Author: David Rodrguez * Status: Closed * Priority: Normal * Assignee: * ruby -v: ruby 2.1.4p265 (2014-10-27 revision 48166) [i686-linux] * Backport: 2.0.0: UNKNOWN, 2.1: DONE, 2.2: DONTNEED ---------------------------------------- Sometimes, when using parenthesis, I get duplicated lines events from the TracePoint API. See the failing test case, it generates 2 line events where I think it should generate just one. def test_no_duplicate_line_events events = [] TracePoint.new(:line) { |tp| events << tp.event }.enable { a = (1) * 5 } assert_equal [:line], events end Thanks!! -- https://bugs.ruby-lang.org/