From 2aba0f3b898fa274ef2ddfd2244ce73d6a7d3d27 Mon Sep 17 00:00:00 2001 From: John Bywater Date: Fri, 31 Jan 2020 16:20:20 +0000 Subject: [PATCH] Skipping running system with Ray and Python3.6 (pickle problem). --- .../tests/contrib_tests/paxos_tests/test_paxos_system.py | 6 ++++++ .../paxos_tests/test_paxos_system_with_popo.py | 7 ------- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/eventsourcing/tests/contrib_tests/paxos_tests/test_paxos_system.py b/eventsourcing/tests/contrib_tests/paxos_tests/test_paxos_system.py index efcad8ef8..dbe417781 100644 --- a/eventsourcing/tests/contrib_tests/paxos_tests/test_paxos_system.py +++ b/eventsourcing/tests/contrib_tests/paxos_tests/test_paxos_system.py @@ -1,7 +1,9 @@ import datetime import os +import sys import unittest from time import sleep +from unittest import skipIf from uuid import uuid4 from eventsourcing.application.sqlalchemy import SQLAlchemyApplication @@ -182,6 +184,10 @@ def test_multiprocessing(self): print("Resolved paxos 3 with multiprocessing in %ss" % duration3) @notquick + @skipIf( + sys.version_info[:2] == (3, 6), + "RayRunner not working with Python36 (pickle issue)" + ) def test_ray_performance(self): set_db_uri() diff --git a/eventsourcing/tests/contrib_tests/paxos_tests/test_paxos_system_with_popo.py b/eventsourcing/tests/contrib_tests/paxos_tests/test_paxos_system_with_popo.py index 214d3eb55..61056ca3f 100644 --- a/eventsourcing/tests/contrib_tests/paxos_tests/test_paxos_system_with_popo.py +++ b/eventsourcing/tests/contrib_tests/paxos_tests/test_paxos_system_with_popo.py @@ -18,10 +18,3 @@ def test_multiprocessing_performance(self): @skip("Popo doesn't do multiprocessing") def test_multiprocessing(self): pass - - @skipIf( - sys.version_info[:2] == (3, 6), - "RayRunner not working with Python36 (pickle issue)" - ) - def test_ray_performance(self): - pass