From 67ef4b60bda63ebeb0dcc164708c8fc3482cc77c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=2E=20Fernando=20S=C3=A1nchez?= Date: Wed, 25 Apr 2018 09:29:46 +0200 Subject: [PATCH] Skip evaluation tests in Py2 GSITK doesn't support python2 --- tests/test_plugins.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/test_plugins.py b/tests/test_plugins.py index 7f42605..034db97 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -1,11 +1,12 @@ #!/bin/env python import os +import sys import pickle import shutil import tempfile -from unittest import TestCase +from unittest import TestCase, skipIf from senpy.models import Results, Entry, EmotionSet, Emotion, Plugins from senpy import plugins from senpy.plugins.conversion.emotion.centroids import CentroidConversion @@ -311,6 +312,8 @@ class PluginsTest(TestCase): res = c._backwards_conversion(e) assert res["onyx:hasEmotionCategory"] == "c2" + @skipIf(sys.version_info < (3, 0), + reason="requires Python3") def test_evaluation(self): testdata = [] for i in range(50):