From 2bc141f2b6c17485971199974c7bd012b0c61c82 Mon Sep 17 00:00:00 2001 From: Kevin Newton Date: Wed, 21 Aug 2024 10:34:12 -0400 Subject: [PRISM] Fix up test exception assertion for Prism --- test/ruby/test_exception.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 4b7d709906..09df1b5dcb 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -1498,7 +1498,7 @@ $stderr = $stdout; raise "\x82\xa0"') do |outs, errs, status| assert_not_empty(stderr.grep(pattern)) error, = stderr.grep(/unexpected end-of-input/) assert_not_nil(error) - assert_match(/<.*unexpected end-of-input.*>/, error) + assert_match(/<.*unexpected end-of-input.*>|\^ unexpected end-of-input,/, error) end end end -- cgit v1.2.3