1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
David Rodríguez d9dd88a686 [rubygems/rubygems] Avoid crash in test teardown
If an exception happens during test `setup` method, the `teardown`
method will still be run for cleaning up, but if some other errors
occurs then, it will hide the original error.

This is happening sometimes in CI where restoring original gem hooks is
failing because the error in `setup` happened before the variable
holding the original hooks was initialized.

This commit moves initialization of `@orig_hooks` to the beginning of
the `setup` method to avoid this issue.

https://github.com/rubygems/rubygems/commit/8524d2b74d
2022-03-24 07:34:29 +09:00
..
-ext- [Feature #18249] Implement ABI checking 2022-02-22 09:55:21 -05:00
base64
benchmark
bigdecimal [ruby/bigdecimal] Fix the maximum precision of the quotient 2022-01-24 10:56:30 +09:00
cgi
coverage
csv
date [ruby/date] Use assert_deprecated_warn 2022-02-25 20:39:47 +09:00
did_you_mean
digest
drb
dtrace Use omit instead of skip without the default gems tests 2022-01-11 21:17:59 +09:00
erb [ruby/erb] Revert "Remove safe_level and further positional arguments (https://github.com/ruby/erb/pull/7)" 2022-01-17 12:39:17 -08:00
error_highlight [ruby/error_highlight] Add a test to check if it is robust against a spoofed filename 2022-01-04 23:18:37 +09:00
etc
excludes Skip three tests on FreeBSD 13 2022-03-08 16:06:37 +09:00
fiber rb_fiber_terminate must not return [Bug #18497] 2022-01-19 19:57:16 +09:00
fiddle
fileutils
fixtures/fake_sorted_set_gem
io test/io/console/test_io_console.rb: parens needed 2022-03-08 17:40:02 +09:00
irb
json
lib Fix test_rubyoptions for MinGW (#5363) 2021-12-27 22:22:09 -08:00
logger [ruby/logger] Fix log rotation inter-process lock failed. 2022-01-27 12:33:06 +09:00
mkmf Update the test for [Feature #18615] 2022-03-17 15:07:18 +09:00
monitor
net [ruby/net-http] Do not set SNI hostname if connecting to IP address 2022-02-03 05:10:21 +09:00
nkf
objspace Show embed status of array when len is 0 in objspace dump 2022-03-01 10:55:53 -05:00
open-uri
openssl
optparse [ruby/optparse] Fix for ruby 3.0 or earlier 2022-01-12 21:16:02 +09:00
ostruct [ruby/ostruct] Fix class and method as attribute names 2022-03-07 20:08:22 +09:00
pathname [ruby/pathname] Make Pathname#each_entry return enumerator if called without block 2022-01-07 09:42:09 +09:00
psych [ruby/psych] Add strict_integer option to parse numbers with commas as strings 2022-01-22 10:00:51 +09:00
racc
rdoc [ruby/rdoc] Expand the enclosing tree of the current file 2022-03-22 01:32:13 +09:00
readline
reline [ruby/reline] Fix support for emacs-ctlx and emacs-meta keymaps 2022-02-22 18:52:52 +09:00
resolv [ruby/resolv] Use omit instead of skip for test-unit 2022-01-12 10:49:58 +09:00
rinda [ruby/rinda] Use omit instead of skip for test-unit 2022-01-12 10:59:21 +09:00
ripper
ruby Raise ArgumentError when calling Enumberable#inject without block or arguments 2022-03-23 07:55:49 -07:00
rubygems [rubygems/rubygems] Avoid crash in test teardown 2022-03-24 07:34:29 +09:00
socket Use omit instead of skip: test/socket/**/*.rb 2021-12-28 20:29:54 +09:00
stringio
strscan
syslog
uri
win32ole [ruby/win32ole] Use omit() for skip() 2022-01-12 10:50:43 +09:00
yaml
zlib [ruby/zlib] Use omit instead of skip for test-unit 2022-01-11 21:35:22 +09:00
runner.rb
test_abbrev.rb
test_delegate.rb
test_extlibs.rb
test_find.rb [ruby/find] Use omit instead of skip for test-unit 2022-01-11 21:40:51 +09:00
test_forwardable.rb
test_getoptlong.rb
test_ipaddr.rb [ruby/ipaddr] Fix exception calling to_range' after freeze' 2022-02-10 17:18:05 +09:00
test_mutex_m.rb
test_observer.rb
test_open3.rb [ruby/open3] Use omit instead of skip for test-unit 2022-01-12 10:52:09 +09:00
test_pp.rb
test_prettyprint.rb
test_pstore.rb
test_pty.rb Use omit instead of skip without the default gems tests 2022-01-11 21:17:59 +09:00
test_rbconfig.rb
test_securerandom.rb
test_set.rb Make Set a builtin feature [Feature #16989] 2022-02-18 11:56:24 +09:00
test_shellwords.rb
test_singleton.rb
test_sorted_set.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb [ruby/tmpdir] Use omit instead of skip for test-unit 2022-01-11 21:50:53 +09:00
test_trick.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb