[ruby/pathname] Omit failure on JRuby and truffleruby

https://github.com/ruby/pathname/commit/fc70010d40
This commit is contained in:
Nobuyoshi Nakada 2025-12-07 23:08:01 +09:00 committed by Hiroshi SHIBATA
parent 5c58327065
commit 4449100a11
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -502,6 +502,8 @@ class TestPathname < Test::Unit::TestCase
end
def test_initialize_encoding
omit "https://github.com/jruby/jruby/issues/9120" if RUBY_ENGINE == "jruby"
omit "https://github.com/truffleruby/truffleruby/issues/4047" if RUBY_ENGINE == "truffleruby"
assert_raise(Encoding::CompatibilityError) { Pathname.new("a".encode(Encoding::UTF_32BE)) }
end