diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-07-30 15:13:58 +0900 |
|---|---|---|
| committer | U.Nakamura <usa@ruby-lang.org> | 2023-11-07 15:30:35 +0900 |
| commit | 42325aa826dada78d95b559fc50aaf4444edfbb0 (patch) | |
| tree | 9cf038d77654daf1b64d534051f48fea054d668b /test/ruby | |
| parent | 881088e06f092d20a361c9528b2927cdc2b1616c (diff) | |
Ease the `Encoding::CompatibilityError` test failure
At the time this test first started using `assert_raise_with_message`,
it did not touch `Encoding.default_internal`.
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_require.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb index 54165bc31c..a71fe0932e 100644 --- a/test/ruby/test_require.rb +++ b/test/ruby/test_require.rb @@ -68,7 +68,8 @@ class TestRequire < Test::Unit::TestCase def test_require_nonascii bug3758 = '[ruby-core:31915]' ["\u{221e}", "\x82\xa0".force_encoding("cp932")].each do |path| - assert_raise_with_message(LoadError, /#{path}\z/, bug3758) {require path} + e = assert_raise(LoadError, bug3758) {require path} + assert_operator(e.message, :end_with?, path, bug3758) end end |
