Explorar el Código

tests: Fix unit test suite on Python 2.7

rdb hace 1 mes
padre
commit
8177021155
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  1. 3 0
      tests/event/test_futures.py

+ 3 - 0
tests/event/test_futures.py

@@ -16,6 +16,9 @@ def check_result(fut, expected):
     if fut.result() != expected:
     if fut.result() != expected:
         return False
         return False
 
 
+    if sys.version_info < (3, 5):
+        return False
+
     # Make sure that await also returns the values properly
     # Make sure that await also returns the values properly
     with pytest.raises(StopIteration) as e:
     with pytest.raises(StopIteration) as e:
         next(fut.__await__())
         next(fut.__await__())