summaryrefslogtreecommitdiff
path: root/test/api_test.rb
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2021-04-15 04:39:55 -0600
committerGitHub <noreply@github.com>2021-04-15 04:39:55 -0600
commit6ce59d10651434a625cfbbd819611b8c8d932b50 (patch)
tree14f3149efab06c010e1a79d414997ebf38ff0e0e /test/api_test.rb
parentd7bf59fec1d0ec65fd24bf0ea02d4f31234b5046 (diff)
resolves #3550 run tests on JRuby for Windows in CI (PR #3841)
* run tests on JRuby 9.1 and 9.2 for Windows in CI * don't run Pygments tests on JRuby 9.1 for Windows * exclude tests that use run_command on JRuby 9.1 for Windows * ensure mtime of input file honors TZ environment variable on JRuby for Windows
Diffstat (limited to 'test/api_test.rb')
-rw-r--r--test/api_test.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/api_test.rb b/test/api_test.rb
index ccbb3608..78ad4e42 100644
--- a/test/api_test.rb
+++ b/test/api_test.rb
@@ -84,7 +84,8 @@ context 'API' do
assert_match(/reader\.rb.*prepare_lines/, exception.backtrace[0..4].join(?\n))
end
- test 'should convert filename that contains non-ASCII characters independent of default encodings' do
+ # NOTE JRuby for Windows does not permit creating a file with non-Windows-1252 characters in the filename
+ test 'should convert filename that contains non-ASCII characters independent of default encodings', unless: (jruby? && windows?) do
old_external = Encoding.default_external
old_internal = Encoding.default_internal
old_verbose = $VERBOSE