You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by da...@apache.org on 2017/01/10 17:10:49 UTC
[4/5] tinkerpop git commit: removed non-deterministic threaded test
removed non-deterministic threaded test
Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/4340923b
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/4340923b
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/4340923b
Branch: refs/heads/tp32
Commit: 4340923ba75f05b58e798a82ef9ced1ea98e1e34
Parents: 6c8337f
Author: davebshow <da...@gmail.com>
Authored: Fri Dec 16 17:10:41 2016 -0500
Committer: davebshow <da...@gmail.com>
Committed: Fri Dec 16 17:10:41 2016 -0500
----------------------------------------------------------------------
.../test_driver_remote_connection_threaded.py | 19 -------------------
1 file changed, 19 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4340923b/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection_threaded.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection_threaded.py b/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection_threaded.py
index e27e52c..0c18651 100644
--- a/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection_threaded.py
+++ b/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection_threaded.py
@@ -60,25 +60,6 @@ class TestDriverRemoteConnectionThreaded:
child.join()
child2.join()
- def test_threaded_client_error(self):
- q = queue.Queue()
- # This scenario fails because both threads try to access the main
- # thread event loop - bad - each thread needs its own loop.
- # This is what happens when you can't manually set the loop.
- child = Thread(target=self._executor, args=(q, None))
- child2 = Thread(target=self._executor, args=(q, None))
- child.start()
- child2.start()
- with pytest.raises(RuntimeError):
- try:
- for x in range(2):
- exc = q.get()
- if issubclass(exc, Exception):
- raise exc()
- finally:
- child.join()
- child2.join()
-
def _executor(self, q, loop):
try:
connection = DriverRemoteConnection(