From abc6f96f228786159a07420cc97740faf64b19d4 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sun, 23 Nov 2014 23:14:03 +0100 Subject: old version of asyncio didn't check thread safety --- tests/test_thread.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/tests/test_thread.py b/tests/test_thread.py index c41eeaa..4c4185b 100644 --- a/tests/test_thread.py +++ b/tests/test_thread.py @@ -87,13 +87,6 @@ class ThreadTests(tests.TestCase): result.append(threading.current_thread().ident) loop.stop() - # FIXME: call_soon() must raise an exception if if the main thread - # has no event loop, bugs.python.org/issue22926 - #self.loop.close() - #asyncio.set_event_loop(None) - # call_soon() must fail when called from the wrong thread - self.assertRaises(RuntimeError, loop.call_soon, func, loop) - # call func() in a different thread using the event loop tid = thread.ident loop.call_soon_threadsafe(func, loop) -- cgit v1.2.1