python: validate output in test
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
620ddfd988
commit
629108dada
1 changed files with 1 additions and 1 deletions
|
@ -174,6 +174,6 @@ class Python < Formula
|
|||
|
||||
def test
|
||||
# See: https://github.com/mxcl/homebrew/pull/10487
|
||||
system "#{bin}/python -c 'from decimal import Decimal; print Decimal(4) / Decimal(2)'"
|
||||
`#{bin}/python -c 'from decimal import Decimal; print Decimal(4) / Decimal(2)'`.chomp == '2'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue