Skip to content

Instantly share code, notes, and snippets.

@gabrielcnr
Last active August 29, 2015 14:24
Show Gist options
  • Select an option

  • Save gabrielcnr/52c4581d3daae14c0979 to your computer and use it in GitHub Desktop.

Select an option

Save gabrielcnr/52c4581d3daae14c0979 to your computer and use it in GitHub Desktop.
from enaml.qt.application import QtApplication
def test_something():
pass
r"""
[arc] C:\dev\code
λ py.test test_enaml.py
============================= test session starts =============================
platform win32 -- Python 2.7.10 -- py-1.4.27 -- pytest-2.7.1
qt-api: pyqt4
rootdir: C:\dev\code, inifile:
plugins: qt
collected 0 items / 1 errors
=================================== ERRORS ====================================
_______________________ ERROR collecting test_enaml.py ________________________
test_enaml.py:1: in <module>
from enaml.qt.application import QtApplication
..\bin\anaconda\envs\arc\lib\site-packages\enaml-0.9.8-py2.7-win-amd64.egg\enaml\qt\__init__.py:28: in <module>
prepare_pyqt()
..\bin\anaconda\envs\arc\lib\site-packages\enaml-0.9.8-py2.7-win-amd64.egg\enaml\qt\__init__.py:13: in prepare_pyqt
sip.setapi('QDate', 2)
E ValueError: API 'QDate' has already been set to version 1
=========================== 1 error in 0.03 seconds ===========================
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment