pygtkglext: use test DSL

This commit is contained in:
Jack Nagel committed 2013-02-01 23:38:54 -06:00
1 parent 58501aeaf2
commit 88ddfbb72a
1 file changed
+2 -10
+2 -10
View File
@@ -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