ruby/test
Jeremy Evans bb93659fef
Fix pp when passed a empty ruby2_keywords-flagged hash as array element (#2966)
This causes problems because the hash is passed to a block not
accepting keywords.  Because the hash is empty and keyword flagged,
it is removed before calling the block.  This doesn't cause an
ArgumentError because it is a block and not a lambda.  Just like
any other block not passed required arguments, arguments not
passed are set to nil.

Issues like this are a strong reason not to have ruby2_keywords
by default.

Fixes [Bug #16519]

This backports 28d31ead34 and
0ea759eac9, but needed to be modified
for 2.7 as 2.7 will perform empty keyword to positional hash
conversion for required arguments, which will happen if "v" in the
seplist method is empty when yielded.

Co-authored-by: NARUSE, Yui <nurse@users.noreply.github.com>
2020-03-31 16:10:57 +09:00
..
-ext- Clear all trace events during teardown 2020-03-30 19:15:11 +09:00
base64 lib/base64.rb: Specify frozen_string_literal: true. 2017-02-10 00:58:45 +00:00
benchmark Aliases capture_output to capture_io for test-unit compatiblity. 2019-08-08 17:19:23 +09:00
bigdecimal More fixes for $SAFE/taint post merging 2019-11-18 01:00:25 +02:00
cgi Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
coverage compile.c: stop wrong peephole optimization when covearge is enabled 2019-12-04 10:40:54 +09:00
csv Remove unneeded exec bits from some files 2019-11-09 21:36:30 +09:00
date Fixed misspellings 2019-12-20 12:19:45 +09:00
dbm [ruby/dbm] Remove taint support 2019-10-26 07:03:33 +09:00
did_you_mean Port dd1dd86e6c 2019-12-23 00:47:41 -05:00
digest Restore support library for only test files that are digest and csv. 2019-07-09 21:16:49 +09:00
drb lib/drb/drb.rb: Use ruby2_keywords for keyword separation 2020-03-13 22:38:05 +09:00
dtrace test/dtrace/helper.rb: Etc.getgrnam may return nil on some platforms 2019-10-06 15:23:00 +09:00
erb Suppress uninitialized instance variable warnings 2019-07-04 18:12:08 +09:00
etc test_etc.rb: fix test_getgrnam for duplicated group names 2017-09-29 17:19:37 +00:00
excludes Revert "Skip interruptible raw mode test on Travis-CI" 2019-12-18 00:08:21 +09:00
fiddle Fix "cannot find the function: strcpy()" error on arm32 on Travis CI. (#2686) 2019-12-05 14:17:16 +09:00
fileutils Revert "[ruby/fileutils] Fix #install with "X" mode option" 2019-11-30 17:58:39 +09:00
gdbm Support old versions of Ruby with FrozenError. 2018-08-07 12:47:11 +00:00
io Ruby 2.7 backport about IRB (#2990) 2020-03-30 19:09:50 +09:00
irb Ruby 2.7 backport about IRB (#2990) 2020-03-30 19:09:50 +09:00
json Import json-2.3.0 from flori/json 2019-12-12 09:14:09 +09:00
lib test/lib/jit_support.rb: Update the regexp for icc 2019-12-05 23:46:42 +09:00
logger Fixed misspellings 2019-12-20 12:19:45 +09:00
matrix Add abs to Matrix (#2199) 2019-08-21 16:36:39 -04:00
misc test_ruby_mode.rb: fix for Emacs 25.1 2016-09-24 01:19:43 +00:00
mkmf Fix keyword argument separation warnings in test 2019-08-30 12:39:31 -07:00
monitor new_cond before mon_initialize 2019-12-04 13:36:41 +09:00
net Revert "lib/net/http/response.rb: support raw deflate correctly" 2019-12-16 23:39:10 +09:00
nkf
objspace Suppress unused variable warnings 2019-06-30 11:45:37 +09:00
open-uri The default charset of text/* media type is UTF-8. 2019-07-15 09:36:52 +09:00
openssl test/openssl/test_ssl.rb: ignore SSLError when the connection is closed 2020-03-26 22:17:08 +09:00
optparse LoadError is not a subclass of StandardError 2019-11-29 11:25:23 +09:00
ostruct ostruct.rb: Accept block for to_h [#15451]. 2018-12-22 17:05:03 +00:00
pathname Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
psych [ruby/psych] Remove taint support 2019-11-12 10:35:47 +09:00
racc Fixed misspellings 2019-12-20 12:19:45 +09:00
rdoc [ruby/rdoc] Support newline in the middle of constant definition 2019-12-24 07:58:53 +09:00
readline Ruby 2.7 backport about IRB (#2990) 2020-03-30 19:09:50 +09:00
reline Ruby 2.7 backport about IRB (#2990) 2020-03-30 19:09:50 +09:00
resolv MinGW on Actions (#2791) 2020-01-30 13:34:24 +09:00
rexml Import REXML 3.2.3 (#2548) 2019-10-12 12:07:15 +09:00
rinda Stop pool threads in test/rinda too 2019-12-09 13:46:23 +09:00
ripper Warn also numbered parameter like parameters 2019-12-20 01:25:34 +09:00
rss Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
ruby Ruby 2.7 backport about IRB (#2990) 2020-03-30 19:09:50 +09:00
rubygems Merge RubyGems 3.1.2 2019-12-20 11:50:32 +09:00
sdbm skip some tests so that no failure occurs in root privilege 2018-01-10 10:39:09 +00:00
socket Test interfaces include localhost 2019-12-06 16:03:16 +09:00
stringio [ruby/stringio] StringIO#initialize default to the source string encoding 2020-03-15 20:53:14 +09:00
strscan Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
syslog Honor Syslog::Logger#level overrides 2019-09-26 15:01:44 -07:00
uri Check for invalid hex escapes in URI#query= 2019-10-08 07:30:55 -07:00
webrick [ruby/webrick] Check the feature by itself, instead of the version number 2019-11-30 17:52:05 +09:00
win32ole Warn on access/modify of $SAFE, and remove effects of modifying $SAFE 2019-11-18 01:00:25 +02:00
yaml
zlib [ruby/zlib] Fix setting mtime to zero in GzipWriter 2019-10-31 22:23:58 +09:00
runner.rb Separated tool/test/runner.rb and test/runner.rb 2019-07-25 16:57:38 +09:00
test_abbrev.rb
test_delegate.rb Fix SimpleDelegator respond_to? regression 2020-03-15 19:35:24 +09:00
test_extlibs.rb
test_find.rb
test_forwardable.rb [ruby/forwardable] Make def_*_delegator return name of method defined (Fixes #10) 2019-12-11 20:23:53 +09:00
test_ipaddr.rb Assert obsolete method warnings in IPAddr 2019-07-01 13:02:23 +09:00
test_mutex_m.rb
test_observer.rb
test_open3.rb Restore support library for only test files. 2019-07-09 21:04:07 +09:00
test_pp.rb Fix pp when passed a empty ruby2_keywords-flagged hash as array element (#2966) 2020-03-31 16:10:57 +09:00
test_prettyprint.rb
test_prime.rb Suppress method redefinition warnings 2019-06-30 11:49:41 +09:00
test_pstore.rb Expand the timeout of test_pstore_files_are_accessed_as_binary_files 2019-08-05 12:52:14 +09:00
test_pty.rb
test_rbconfig.rb Make RbConfig::CONFIG values mutable [Bug #16738] 2020-03-27 14:51:35 +09:00
test_securerandom.rb Test SecureRandom.uuid format 2019-07-26 09:56:53 -07:00
test_set.rb Deprecate taint/trust and related methods, and make the methods no-ops 2019-11-18 01:00:25 +02:00
test_shellwords.rb Do not escape + in Shellwords.escape 2019-09-27 07:43:32 -07:00
test_singleton.rb
test_syslog.rb test/test_syslog.rb (test_log): skipped on Android 2019-10-11 21:13:52 +09:00
test_tempfile.rb Warn on access/modify of $SAFE, and remove effects of modifying $SAFE 2019-11-18 01:00:25 +02:00
test_time.rb Support %U/%u/%W/%w/%V/%g/%G formats in Time.strptime 2019-11-21 03:32:20 +02:00
test_timeout.rb
test_tmpdir.rb Warn on access/modify of $SAFE, and remove effects of modifying $SAFE 2019-11-18 01:00:25 +02:00
test_tracer.rb Use realpath to try to fix failures with symlinks 2019-11-23 11:41:27 +09:00
test_tsort.rb
test_unicode_normalize.rb Removed unused variables 2019-06-28 23:21:37 +09:00
test_weakref.rb Pin weakmap references 2019-04-09 23:03:40 +00:00
test_win32api.rb test_win32api.rb: suppress a warning 2018-09-23 12:40:46 +00:00