summaryrefslogtreecommitdiff
path: root/test/ruby/test_require.rb
diff options
context:
space:
mode:
authorlukeg <luke.gru@gmail.com>2023-03-13 18:13:21 -0400
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-03-17 08:46:37 +0900
commitd2c6dca8f4a9fb3e6b9748758ee9eb75fa18622a (patch)
treec2c58ed7613bb74f14c9e16510112acc132e0bd5 /test/ruby/test_require.rb
parent5825d7d4a1a53ba84909a01679f4dfab63fa9739 (diff)
Fix small issues concerning namespacing in test-all suite
* Fix temporary methods on Object leaking across test cases. * Remove temporary classes/modules leaking across test cases.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/7513
Diffstat (limited to 'test/ruby/test_require.rb')
-rw-r--r--test/ruby/test_require.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_require.rb b/test/ruby/test_require.rb
index e0cfc8c914..60e5b0f8b1 100644
--- a/test/ruby/test_require.rb
+++ b/test/ruby/test_require.rb
@@ -210,6 +210,7 @@ class TestRequire < Test::Unit::TestCase
assert_not_nil(bt = e.backtrace, "no backtrace")
assert_not_empty(bt.find_all {|b| b.start_with? __FILE__}, proc {bt.inspect})
end
+ ensure
$LOADED_FEATURES.replace loaded_features
end