We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ec4677 commit 4c8eb95Copy full SHA for 4c8eb95
2 files changed
.github/workflows/development.yaml
@@ -92,6 +92,7 @@ jobs:
92
--count --max-complexity=62 --max-line-length=127 --statistics
93
black datajoint --check -v
94
black tests --check -v
95
+ black tests_old --check -v
96
publish-docs:
97
if: |
98
github.event_name == 'push' &&
tests/__init__.py
@@ -1,5 +1,5 @@
1
import datajoint as dj
2
-from distutils.version import LooseVersion
+from packaging import version
3
import pytest
4
import os
5
@@ -36,9 +36,9 @@ def connection_test(connection_root):
36
permission = "ALL PRIVILEGES"
37
38
# Create MySQL users
39
- if LooseVersion(
+ if version.parse(
40
connection_root.query("select @@version;").fetchone()[0]
41
- ) >= LooseVersion("8.0.0"):
+ ) >= version.parse("8.0.0"):
42
# create user if necessary on mysql8
43
connection_root.query(
44
f"""
0 commit comments