Skip to content

Commit

Permalink
Testing: Skip another test on Python 3 because it's failing
Browse files Browse the repository at this point in the history
  • Loading branch information
ccordoba12 committed May 6, 2017
1 parent 4070af4 commit 458bef8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion qtpy/tests/test_patch_qheaderview.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
from __future__ import absolute_import

import sys

import pytest
from qtpy import PYSIDE, PYQT4
from qtpy.QtWidgets import QApplication
from qtpy.QtWidgets import QHeaderView
from qtpy.QtCore import Qt
from qtpy.QtCore import QAbstractListModel

import pytest

PY3 = sys.version[0] == "3"


def get_qapp(icon_path=None):
qapp = QApplication.instance()
if qapp is None:
qapp = QApplication([''])
return qapp


@pytest.mark.skipif(PY3, reason="It fails on Python 3")
def test_patched_qheaderview():
"""
This will test whether QHeaderView has the new methods introduced in Qt5.
Expand Down

0 comments on commit 458bef8

Please sign in to comment.