From: hsbt@... Date: 2021-01-04T12:28:59+00:00 Subject: [ruby-core:101909] [Ruby master Bug#16926] Kernel#require does not load a feature twice when $LOAD_PATH has been modified spec fails only on 2.7 Issue #16926 has been updated by hsbt (Hiroshi SHIBATA). Status changed from Closed to Assigned Right, I missed to pick https://github.com/rubygems/rubygems/pull/3639 at RubyGems 3.1.5. ---------------------------------------- Bug #16926: Kernel#require does not load a feature twice when $LOAD_PATH has been modified spec fails only on 2.7 https://bugs.ruby-lang.org/issues/16926#change-89752 * Author: Eregon (Benoit Daloze) * Status: Assigned * Priority: Normal * Assignee: hsbt (Hiroshi SHIBATA) * ruby -v: ruby 2.7.1p83 (2020-03-31 revision a0c7c23c9c) [x86_64-linux] * Backport: 2.5: DONTNEED, 2.6: DONTNEED, 2.7: DONE ---------------------------------------- This spec: https://github.com/ruby/spec/blob/03f9a0e2f9c23a12614ffb603f32cd971d79616e/core/kernel/shared/require.rb#L246-L251 fails in 2.7.1, but not on Ruby <= 2.6 and not on master. Could someone investigate why that is and if the change is on purpose or a bug? It sounds like a bug, because changing the last `be_false` to `be_true` then passes for `Kernel#require` but fails for `Kernel.require`. Reproduce with: ``` $ Use ruby 2.7.1 $ cd ruby/spec # remove ruby_bug guard in core/kernel/require_spec.rb $ mspec core/kernel/require_spec.rb ``` -- https://bugs.ruby-lang.org/ Unsubscribe: