Permalink
Browse files

I don't know why this warning didn't come up during normal testing...

[git-p4: depot-paths = "//src/minitest/dev/": change = 8176]
  • Loading branch information...
1 parent a6564d1 commit 120e8c92e45eba9e561488c2bc2b43278c35e76b @zenspider zenspider committed Feb 2, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/minitest/unit.rb
View
@@ -988,7 +988,7 @@ def initialize # :nodoc:
@report = []
@errors = @failures = @skips = 0
@verbose = false
- @mutex = Mutex.new if defined?(Mutex)
+ @mutex = defined?(Mutex) ? Mutex.new : nil
end
def synchronize # :nodoc:

0 comments on commit 120e8c9

Please sign in to comment.