aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python.rb
diff options
context:
space:
mode:
authorJack Nagel2012-05-06 00:45:48 -0500
committerJack Nagel2012-05-06 01:07:45 -0500
commit01119e2762aa4d7caa5a098a7971000dbfb04be4 (patch)
tree29536cc1ce7f3e42dabbc045d32e72c1c683abc9 /Library/Formula/python.rb
parent0918ed5b373e34ad66232abfc0c32386acb42570 (diff)
downloadhomebrew-01119e2762aa4d7caa5a098a7971000dbfb04be4.tar.bz2
python: validate output in test
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/python.rb')
-rw-r--r--Library/Formula/python.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index d092ef8ac..18dde436e 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -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