|
@@ -2,8 +2,6 @@ import os.path as osp
|
|
import shutil
|
|
import shutil
|
|
import tempfile
|
|
import tempfile
|
|
|
|
|
|
-import qtpy
|
|
|
|
-
|
|
|
|
import labelme.app
|
|
import labelme.app
|
|
import labelme.config
|
|
import labelme.config
|
|
import labelme.testing
|
|
import labelme.testing
|
|
@@ -21,10 +19,6 @@ def test_MainWindow_open(qtbot):
|
|
|
|
|
|
|
|
|
|
def test_MainWindow_open_json(qtbot):
|
|
def test_MainWindow_open_json(qtbot):
|
|
- if qtpy.PYQT4:
|
|
|
|
- # Fails to load image from JSON on Anaconda + Python2.7 + PyQt4
|
|
|
|
- return
|
|
|
|
-
|
|
|
|
filename = osp.join(data_dir, 'apc2016_obj3.json')
|
|
filename = osp.join(data_dir, 'apc2016_obj3.json')
|
|
labelme.testing.assert_labelfile_sanity(filename)
|
|
labelme.testing.assert_labelfile_sanity(filename)
|
|
win = labelme.app.MainWindow(filename=filename)
|
|
win = labelme.app.MainWindow(filename=filename)
|
|
@@ -34,10 +28,6 @@ def test_MainWindow_open_json(qtbot):
|
|
|
|
|
|
|
|
|
|
def test_MainWindow_annotate_jpg(qtbot):
|
|
def test_MainWindow_annotate_jpg(qtbot):
|
|
- if qtpy.PYQT4:
|
|
|
|
- # Fails to load image from JSON on Anaconda + Python2.7 + PyQt4
|
|
|
|
- return
|
|
|
|
-
|
|
|
|
tmp_dir = tempfile.mkdtemp()
|
|
tmp_dir = tempfile.mkdtemp()
|
|
filename = osp.join(tmp_dir, 'apc2016_obj3.jpg')
|
|
filename = osp.join(tmp_dir, 'apc2016_obj3.jpg')
|
|
shutil.copy(osp.join(data_dir, 'apc2016_obj3.jpg'),
|
|
shutil.copy(osp.join(data_dir, 'apc2016_obj3.jpg'),
|