pyqt: don't open a GUI during brew test

Opening a GUI window during brew test leads to test failures on Yosemite.