diff options
| author | Tim D. Smith | 2014-12-27 00:23:00 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2014-12-27 10:03:35 +0000 |
| commit | 0947d4058e00a5486405d3d0b96087060089d377 (patch) | |
| tree | 7d92562c8c74cae24c083e82bef574b9273d06fe /Library/Formula | |
| parent | 1064ec93bd337d295074ae9f5d9c0228e301d236 (diff) | |
| download | homebrew-0947d4058e00a5486405d3d0b96087060089d377.tar.bz2 | |
pyqt: don't open a GUI during brew test
Opening a GUI window during brew test leads to test failures on Yosemite.
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/pyqt.rb | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/Library/Formula/pyqt.rb b/Library/Formula/pyqt.rb index 2227baa51..83762f80b 100644 --- a/Library/Formula/pyqt.rb +++ b/Library/Formula/pyqt.rb @@ -81,22 +81,8 @@ class Pyqt < Formula test do Pathname("test.py").write <<-EOS.undent - import sys - from PyQt4 import QtGui, QtCore - - class Test(QtGui.QWidget): - def __init__(self, parent=None): - QtGui.QWidget.__init__(self, parent) - self.setGeometry(300, 300, 400, 150) - self.setWindowTitle('Homebrew') - QtGui.QLabel("Python " + "{0}.{1}.{2}".format(*sys.version_info[0:3]) + - " working with PyQt4. Quitting now...", self).move(50, 50) - QtCore.QTimer.singleShot(1500, QtGui.qApp, QtCore.SLOT("quit()")) - - app = QtGui.QApplication([]) - window = Test() - window.show() - sys.exit(app.exec_()) + from PyQt4 import QtNetwork + QtNetwork.QNetworkAccessManager().networkAccessible() EOS Language::Python.each_python(build) do |python, version| |
