Explorar o código

Re-enable pyqt4 tests

Kentaro Wada %!s(int64=6) %!d(string=hai) anos
pai
achega
3fdf0be291
Modificáronse 1 ficheiros con 0 adicións e 10 borrados
  1. 0 10
      tests/test_app.py

+ 0 - 10
tests/test_app.py

@@ -2,8 +2,6 @@ import os.path as osp
 import shutil
 import tempfile
 
-import qtpy
-
 import labelme.app
 import labelme.config
 import labelme.testing
@@ -21,10 +19,6 @@ def test_MainWindow_open(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')
     labelme.testing.assert_labelfile_sanity(filename)
     win = labelme.app.MainWindow(filename=filename)
@@ -34,10 +28,6 @@ def test_MainWindow_open_json(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()
     filename = osp.join(tmp_dir, 'apc2016_obj3.jpg')
     shutil.copy(osp.join(data_dir, 'apc2016_obj3.jpg'),