diff --git a/spyder/widgets/variableexplorer/tests/test_texteditor.py b/spyder/widgets/variableexplorer/tests/test_texteditor.py index 6e284842be7..95eddb7be9f 100644 --- a/spyder/widgets/variableexplorer/tests/test_texteditor.py +++ b/spyder/widgets/variableexplorer/tests/test_texteditor.py @@ -9,11 +9,10 @@ """ # Test library imports -from qtpy import PYQT4 import pytest # Local imports -from spyder.py3compat import PY2 +from spyder.py3compat import PY3 from spyder.widgets.variableexplorer.texteditor import TextEditor @@ -36,16 +35,13 @@ def test_texteditor(qtbot): assert text == dlg_text -@pytest.mark.skipif(PYQT4, reason="It generates a strange error") +@pytest.mark.skipif(PY3, reason="It makes no sense in Python 3") def test_texteditor_setup_and_check(): - if PY2: - import string - dig_its = string.digits; - translate_digits = string.maketrans(dig_its,len(dig_its)*' ') - editor = TextEditor(None) - assert not editor.setup_and_check(translate_digits) - else: - assert True + import string + dig_its = string.digits; + translate_digits = string.maketrans(dig_its,len(dig_its)*' ') + editor = TextEditor(None) + assert not editor.setup_and_check(translate_digits) if __name__ == "__main__":