about summary refs log tree commit diff
path: root/test/python/test_group_by_name.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/python/test_group_by_name.py')
-rw-r--r--test/python/test_group_by_name.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/python/test_group_by_name.py b/test/python/test_group_by_name.py
index da95cfc..0a42faf 100644
--- a/test/python/test_group_by_name.py
+++ b/test/python/test_group_by_name.py
@@ -10,16 +10,9 @@ import socket
 import unittest
 
 from auth_helpers import TOKEN_ENV, auth_token
-from server_test_case import HOST, PORT, ServerTestCase
+from server_test_case import database_reachable, HOST, PORT, ServerTestCase
 
 
-def database_reachable():
-    try:
-        with socket.create_connection(("127.0.0.1", 3306), timeout=0.5):
-            return True
-    except OSError:
-        return False
-
 
 class GroupByNameTest(ServerTestCase):
     EXTRA_ENV = TOKEN_ENV