aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-02-25 22:07:53 -0800
committerAdam Vandenberg2012-02-25 22:07:53 -0800
commit855be1ec350c466f18e668ac76546fb55ea95d92 (patch)
treec0822a76e95c23a7140349bef79799ed6a28e856 /Library/Formula/python.rb
parent200c36200da7679b9bd1384dbb5ad32266d16b91 (diff)
downloadhomebrew-855be1ec350c466f18e668ac76546fb55ea95d92.tar.bz2
Python: add Decimal division test
Diffstat (limited to 'Library/Formula/python.rb')
-rw-r--r--Library/Formula/python.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index 653a27313..e4fa7f00d 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -170,6 +170,11 @@ class Python < Formula
def scripts_folder
HOMEBREW_PREFIX+"share/python"
end
+
+ def test
+ # See: https://github.com/mxcl/homebrew/pull/10487
+ system "#{bin}/python -c 'from decimal import Decimal; print Decimal(4) / Decimal(2)'"
+ end
end
__END__