From 855be1ec350c466f18e668ac76546fb55ea95d92 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 25 Feb 2012 22:07:53 -0800 Subject: Python: add Decimal division test --- Library/Formula/python.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Library/Formula/python.rb') 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__ -- cgit v1.2.3