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/cf02ab10
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/cf02ab10
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/cf02ab10

Branch: refs/heads/master
Commit: cf02ab102fc2a41473adc110f900e5513fa247bf
Parents: a9dea37
Author: davebshow <[email protected]>
Authored: Thu Oct 6 09:31:18 2016 -0400
Committer: Stephen Mallette <[email protected]>
Committed: Fri Oct 7 18:31:34 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/cf02ab10/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 0a892c6..1fd28ae 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
@@ -150,6 +150,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')
@@ -183,6 +185,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__':

Reply via email to