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