1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
Alan Wu 3dd3ea092a Use Module#ancestors order in recursive constant lookup
Before this commit, const_get with inherit=true and constant lookup
expressions searched the ancestors of the starting point in an order
different from `starting_point.ancestors`.

Items in the ancestry list introduced through prepend were searched
after searching the module they were prepended into. This oddity allowed
for situations where constant lookups gave different results even though
`starting_point.ancestors` is the same.

Do the lookup in the same order as `starting_point.ancestors` by
skipping classes and modules that have an origin iclass. The origin
iclass is in the super chain after the prepended modules.

Note that just like before this commit, the starting point of the
constant lookup is always the first item that we search, regardless of
the presence of any prepended modules.

[Bug #17887]
2021-06-30 10:49:27 +09:00
..
-ext- Add basic test for updated IO wait functions. 2021-06-29 23:54:41 +12:00
base64
benchmark
bigdecimal
cgi
coverage Check type of instruction - can be INSN or ADJUST 2021-06-23 11:34:37 -07:00
csv
date
did_you_mean Use assert_not_match "Did you mean?" for UncorrectableNameCheckTest 2021-06-29 15:49:51 +09:00
digest
drb
dtrace
erb
error_highlight Rename error_squiggle to error_highlight 2021-06-29 23:45:49 +09:00
etc
excludes
fiber Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
fiddle [ruby/fiddle] Do not use a libdir for glibc, it breaks Linux PPC64 (#70) 2021-05-18 12:48:40 +09:00
fileutils
fixtures/fake_sorted_set_gem
io
irb Strip trailing spaces 2021-06-23 10:08:51 +09:00
json
lib Revert an accidentally commits at df86a13cc1 2021-05-17 15:28:47 +09:00
logger
mkmf
monitor Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
net Promote net-smtp to the bundled gems 2021-05-27 14:42:11 +09:00
nkf
objspace test/objspace/test_objspace.rb: check stderr before stdout 2021-05-14 18:07:58 +09:00
open-uri Guard for the ftp protocol feature of OpenURI 2021-05-27 14:42:11 +09:00
openssl Defer to require prime for OpenSSL::TestBN 2021-05-27 14:42:11 +09:00
optparse [ruby/optparse] Add EditorConfig file 2021-04-28 11:56:15 +09:00
ostruct [lib/ostruct] Fix YAML test 2021-06-14 12:28:53 -04:00
pathname
psych [ruby/psych] Fix the test that does not work with libyaml-0.1.7 2021-06-08 08:12:27 +09:00
racc [ruby/racc] Stop compressing integer lists 2021-06-25 17:23:06 +09:00
rdoc Discard RDOCOPT environment variable to make tests stable 2021-06-23 18:57:39 +09:00
readline Fix finish_using_lib_reline 2021-06-21 23:13:04 +09:00
reline Revert "Revert "[ruby/reline] Fix failed test"" 2021-06-25 18:56:46 +09:00
resolv Removed minitest/mock 2021-05-19 14:24:01 +09:00
rinda
ripper ripper: wrap endless method in bodystmt [Bug #17869] 2021-05-21 18:28:24 +09:00
ruby Use Module#ancestors order in recursive constant lookup 2021-06-30 10:49:27 +09:00
rubygems Avoid a duplicated method definition of Object#stub 2021-06-22 16:36:36 +09:00
socket Get rid of sporadic WSAEACCES on Windows [ruby-dev:42661] 2021-05-21 18:26:07 +09:00
stringio
strscan [ruby/strscan] Fix segmentation fault of StringScanner#charpos when String#byteslice returns non string value [Bug #17756] (#20) 2021-05-06 16:20:38 +09:00
syslog
uri
win32ole
yaml Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
zlib
runner.rb
test_abbrev.rb
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_pstore.rb Prefer qualified names under Thread 2021-06-29 11:41:10 +09:00
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb
test_shellwords.rb
test_singleton.rb
test_sorted_set.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb [ruby/timeout] Make Timeout::Error#exception with multiple arguments not ignore arguments 2021-05-06 16:49:26 +09:00
test_tmpdir.rb
test_trick.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb