summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-11-23 23:14:03 +0100
committerVictor Stinner <victor.stinner@gmail.com>2014-11-23 23:14:03 +0100
commitabc6f96f228786159a07420cc97740faf64b19d4 (patch)
tree71311807911eea3c341cb539567d9670872092ca
parentb2d6adb066b829ca4b5503b50d93f916daf27cb9 (diff)
downloadaioeventlet-abc6f96f228786159a07420cc97740faf64b19d4.tar.gz
old version of asyncio didn't check thread safety
-rw-r--r--tests/test_thread.py7
1 files changed, 0 insertions, 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)