aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorJack Nagel2013-02-01 23:12:49 -0600
committerJack Nagel2013-02-01 23:38:54 -0600
commit88ddfbb72ae2b7cd53dc58703a7895620167cec5 (patch)
treedddd969e68a5cdc711878e3307ba82e1d6267a38 /Library/Formula
parent58501aeaf288f298f6bf99925bd63afb76361aee (diff)
downloadhomebrew-88ddfbb72ae2b7cd53dc58703a7895620167cec5.tar.bz2
pygtkglext: use test DSL
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/pygtkglext.rb12
1 files changed, 2 insertions, 10 deletions
diff --git a/Library/Formula/pygtkglext.rb b/Library/Formula/pygtkglext.rb
index 4605e6a18..0abd885b2 100644
--- a/Library/Formula/pygtkglext.rb
+++ b/Library/Formula/pygtkglext.rb
@@ -17,15 +17,7 @@ class Pygtkglext < Formula
system "make install"
end
- def test
- # Test importing the modules
- mktemp do
- (Pathname.pwd+'test.py').write <<-EOS.undent
- import pygtk
- pygtk.require('2.0')
- import gtk.gtkgl
- EOS
- system "python test.py"
- end
+ test do
+ system "python", "-c", "import pygtk", "pygtk.require('2.0')", "import gtk.gtkgl"
end
end