pygtkglext: use test DSL
This commit is contained in:
parent
aeb5588f04
commit
fe41590f9d
1 changed files with 2 additions and 10 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue