diff options
| author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2026-05-14 20:39:07 +0900 |
|---|---|---|
| committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2026-05-14 20:40:03 +0900 |
| commit | 5a03fcb33ad9c7c9c9a569894a3bdabb2965d42e (patch) | |
| tree | cd1ebfccfa29eab3c6b55bdd94f11a0aaeb7149f /test | |
| parent | 6b18cc1925586b737bae0844e218d2dd2f84ddf0 (diff) | |
Fix warnings
```
../test/ruby/test_class.rb:445: warning: already initialized constant TestClass::CloneTest1::TEST
../test/ruby/test_class.rb:438: warning: previous definition of TEST was here
../test/ruby/test_class.rb:448: warning: already initialized constant TestClass::CloneTest2::TEST
../test/ruby/test_class.rb:438: warning: previous definition of TEST was here
```
Diffstat (limited to 'test')
| -rw-r--r-- | test/ruby/test_class.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_class.rb b/test/ruby/test_class.rb index 078f63ecd9..82199876ec 100644 --- a/test/ruby/test_class.rb +++ b/test/ruby/test_class.rb @@ -442,9 +442,11 @@ class TestClass < Test::Unit::TestCase CloneTest1 = CloneTest.clone CloneTest2 = CloneTest.clone class CloneTest1 + remove_const :TEST TEST = :C1 end class CloneTest2 + remove_const :TEST TEST = :C2 end |
