diff options
Diffstat (limited to 'test/lib')
-rw-r--r-- | test/lib/minitest/unit.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lib/minitest/unit.rb b/test/lib/minitest/unit.rb index 89b6a8eaf4..aa9a09f049 100644 --- a/test/lib/minitest/unit.rb +++ b/test/lib/minitest/unit.rb @@ -956,7 +956,9 @@ module MiniTest puts if @verbose $stdout.flush - leakchecker.check("#{inst.class}\##{inst.__name__}") + unless RubyVM::MJIT.enabled? # compiler process is wrongly considered as leaked + leakchecker.check("#{inst.class}\##{inst.__name__}") + end inst._assertions } |