python: validate output in test

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
Jack Nagel 2012-05-06 00:45:48 -05:00
parent 620ddfd988
commit 629108dada

View file

@ -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