about summary refs log tree commit diff
path: root/test/python/test_groups.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/python/test_groups.py')
-rw-r--r--test/python/test_groups.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/python/test_groups.py b/test/python/test_groups.py
index 66466de..850266b 100644
--- a/test/python/test_groups.py
+++ b/test/python/test_groups.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 GroupsTest(ServerTestCase):
     EXTRA_ENV = TOKEN_ENV