Skip to content

Commit

Permalink
Skip test of annotate_jpg with pyqt4v2
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Nov 1, 2018
1 parent a47e6d8 commit 5e8191a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
import shutil
import tempfile

import qtpy

import labelme.app
import labelme.config
import labelme.testing
Expand All @@ -28,6 +30,10 @@ def test_MainWindow_open_json(qtbot):


def test_MainWindow_annotate_jpg(qtbot):
if qtpy.QT_VERSION == 'pyqt4v2':
# Fails to load image from JSON on Anaconda + Python2.7 + PyQt4
return

tmp_dir = tempfile.mkdtemp()
filename = osp.join(tmp_dir, 'apc2016_obj3.jpg')
shutil.copy(osp.join(data_dir, 'apc2016_obj3.jpg'),
Expand Down

0 comments on commit 5e8191a

Please sign in to comment.