File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -385,15 +385,14 @@ def downcased_escape(str)
385385# Remove after https://github.com/jruby/jruby/issues/6613 is fixed
386386if Minitest ::Test . jruby?
387387 module JRubyZlibTestExtension
388- @@jruby_zlib_failures = 0
389-
390- def run
388+ def capture_exceptions
391389 super
392- rescue Zlib ::BufError => e
393- raise e unless ( @@jruby_zlib_failures += 1 ) < 10
394- skip "Skipping Zlib::BufError in JRuby, see https://github.com/jruby/jruby/issues/6613"
390+
391+ if failures && failures . reject! { |e | e . error && e . error . is_a? ( Zlib ::BufError ) } # nil if nothing rejected
392+ failures << Minitest ::Skip . new ( 'Skipping Zlib::BufError in JRuby. See: https://github.com/jruby/jruby/issues/6613' )
393+ end
395394 end
396395 end
397396
398397 Minitest ::Test . prepend ( JRubyZlibTestExtension )
399- end
398+ end
You can’t perform that action at this time.
0 commit comments