diff options
author | lukeg <[email protected]> | 2023-03-13 18:13:21 -0400 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2023-03-17 08:46:37 +0900 |
commit | d2c6dca8f4a9fb3e6b9748758ee9eb75fa18622a (patch) | |
tree | c2c58ed7613bb74f14c9e16510112acc132e0bd5 /test/ruby/test_module.rb | |
parent | 5825d7d4a1a53ba84909a01679f4dfab63fa9739 (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_module.rb')
-rw-r--r-- | test/ruby/test_module.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_module.rb b/test/ruby/test_module.rb index 1ae48ef2bd..f566eced3a 100644 --- a/test/ruby/test_module.rb +++ b/test/ruby/test_module.rb @@ -1728,6 +1728,8 @@ class TestModule < Test::Unit::TestCase assert_equal("TestModule::C\u{df}", c.name, '[ruby-core:24600]') c = Module.new.module_eval("class X\u{df} < Module; self; end") assert_match(/::X\u{df}:/, c.new.to_s) + ensure + Object.send(:remove_const, "C\u{df}") end |