diff options
| author | Kevin Newton <kddnewton@gmail.com> | 2023-11-17 09:50:24 -0500 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2023-11-17 14:50:31 +0000 |
| commit | c2f2090da6ef28764f7ba3cdeb984aec7243f4ca (patch) | |
| tree | cd6e62095de01a08d7353d9742e01994f8915605 | |
| parent | 9ba49c61c28691c131e97d5ea0daf35ab9ea353f (diff) | |
[ruby/prism] Do not test locale encoding on windows
https://github.com/ruby/prism/commit/8f40536431
| -rw-r--r-- | test/prism/encoding_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/prism/encoding_test.rb b/test/prism/encoding_test.rb index 21c87b6c6c..657b157e2f 100644 --- a/test/prism/encoding_test.rb +++ b/test/prism/encoding_test.rb @@ -70,7 +70,10 @@ module Prism end encodings.each do |encoding, range| - encoding.names.each do |name| + names = encoding.names + names.delete("locale") if encoding == Encoding::UTF_8 && RUBY_PLATFORM.include?("mingw") + + names.each do |name| define_method(:"test_encoding_#{name}") do assert_encoding(encoding, name, range) end |
