mirror of
https://github.com/mistydemeo/tigerbrew.git
synced 2026-11-29 20:29:40 -05:00
pygtkglext: use test DSL
This commit is contained in:
1 parent
58501aeaf2
commit
88ddfbb72a
1 file changed
+2
-10
@@ -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
|
||||
Reference in new issue
Block a user