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 2016/10/06 13:31:34 UTC

tinkerpop git commit: closed conn in tests, this should be done with pytest fixtures, but until then, manually

Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1458 9b5196bff -> 1b4a04c4c


closed conn in tests, this should be done with pytest fixtures, but until then, manually


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/1b4a04c4
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/1b4a04c4
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/1b4a04c4

Branch: refs/heads/TINKERPOP-1458
Commit: 1b4a04c4c905c44c42823f22d388f73d99cda075
Parents: 9b5196b
Author: davebshow <da...@gmail.com>
Authored: Thu Oct 6 09:31:18 2016 -0400
Committer: davebshow <da...@gmail.com>
Committed: Thu Oct 6 09:31:18 2016 -0400

----------------------------------------------------------------------
 .../src/main/jython/tests/driver/test_driver_remote_connection.py | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/1b4a04c4/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py b/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
index d8d2ed4..fa17808 100644
--- a/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
+++ b/gremlin-python/src/main/jython/tests/driver/test_driver_remote_connection.py
@@ -117,6 +117,8 @@ class TestDriverRemoteConnection(TestCase):
             raise Exception("Accessing a non-existent key should throw an error")
         except KeyError:
             pass
+        connection.close()
+
 
     def test_side_effect_close(self):
         connection = DriverRemoteConnection('ws://localhost:8182/gremlin', 'g')
@@ -150,6 +152,7 @@ class TestDriverRemoteConnection(TestCase):
         # Try to get 'b' directly from server, should throw error
         with pytest.raises(Exception):
             t.side_effects.value_lambda('b')
+        connection.close()
 
 
 if __name__ == '__main__':