From e37edc92d876ad0c76bb9c1e710f4a1869763e61 Mon Sep 17 00:00:00 2001 From: Marcin Usielski Date: Fri, 8 Nov 2024 14:43:32 +0000 Subject: [PATCH] no asyncio tests of scheduler --- test/test_scheduler.py | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/test/test_scheduler.py b/test/test_scheduler.py index 9562df72e..d79534d3a 100644 --- a/test/test_scheduler.py +++ b/test/test_scheduler.py @@ -11,8 +11,6 @@ from moler.util.moler_test import MolerTest import time import pytest -import sys -import asyncio def test_job(): @@ -95,18 +93,18 @@ def test_thread_test_job(): assert (3 == values['number']) -@pytest.mark.skipif(sys.version_info < (3, 4), reason="requires python3.4 or higher") -def test_asyncio_test_job(): - loop = asyncio.get_event_loop() - Scheduler.change_kind("asyncio") - values = {'number': 0} - job = Scheduler.get_job(callback=callback, interval=0.1, callback_params={'param_dict': values}) - job.start() - loop.run_until_complete(asyncio.sleep(0.23)) - job.cancel() - loop.stop() - Scheduler.change_kind() # Set the default - assert (2 == values['number']) +# @pytest.mark.skipif(sys.version_info < (3, 4), reason="requires python3.4 or higher") +# def test_asyncio_test_job(): +# loop = asyncio.get_event_loop() +# Scheduler.change_kind("asyncio") +# values = {'number': 0} +# job = Scheduler.get_job(callback=callback, interval=0.1, callback_params={'param_dict': values}) +# job.start() +# loop.run_until_complete(asyncio.sleep(0.23)) +# job.cancel() +# loop.stop() +# Scheduler.change_kind() # Set the default +# assert (2 == values['number']) def test_cannot_create_more_objects():