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/31 15:44:14 UTC

tinkerpop git commit: fixtures should test for subclasses of OSError (ConnectionError, ConnectionRefusedError etc.)

Repository: tinkerpop
Updated Branches:
  refs/heads/TINKERPOP-1599 e5b6cd431 -> 64ddbaf63


fixtures should test for subclasses of OSError (ConnectionError, ConnectionRefusedError etc.)


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

Branch: refs/heads/TINKERPOP-1599
Commit: 64ddbaf63db88b18d4f5c92ab4fef709e9dd7f3d
Parents: e5b6cd4
Author: davebshow <da...@gmail.com>
Authored: Tue Jan 31 10:43:59 2017 -0500
Committer: davebshow <da...@gmail.com>
Committed: Tue Jan 31 10:43:59 2017 -0500

----------------------------------------------------------------------
 gremlin-python/src/main/jython/tests/conftest.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/64ddbaf6/gremlin-python/src/main/jython/tests/conftest.py
----------------------------------------------------------------------
diff --git a/gremlin-python/src/main/jython/tests/conftest.py b/gremlin-python/src/main/jython/tests/conftest.py
index 49779ac..3425266 100644
--- a/gremlin-python/src/main/jython/tests/conftest.py
+++ b/gremlin-python/src/main/jython/tests/conftest.py
@@ -38,7 +38,7 @@ def connection(request):
     try:
         conn = Connection('ws://localhost:45940/gremlin', 'g', protocol,
                           lambda: TornadoTransport(), executor, pool)
-    except:
+    except OSError:
         executor.shutdown()
         pytest.skip('Gremlin Server is not running')
     else:
@@ -52,7 +52,7 @@ def connection(request):
 def client(request):
     try:
         client = Client('ws://localhost:45940/gremlin', 'g')
-    except:
+    except OSError:
         pytest.skip('Gremlin Server is not running')
     else:
         def fin():
@@ -64,7 +64,7 @@ def client(request):
 def remote_connection(request):
     try:
         remote_conn = DriverRemoteConnection('ws://localhost:45940/gremlin', 'g')
-    except:
+    except OSError:
         pytest.skip('Gremlin Server is not running')
     else:
         def fin():