Skip to content

Commit 4c8eb95

Browse files
Add black format test and remove deprecated version comparison.
1 parent 8ec4677 commit 4c8eb95

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/development.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ jobs:
9292
--count --max-complexity=62 --max-line-length=127 --statistics
9393
black datajoint --check -v
9494
black tests --check -v
95+
black tests_old --check -v
9596
publish-docs:
9697
if: |
9798
github.event_name == 'push' &&

tests/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import datajoint as dj
2-
from distutils.version import LooseVersion
2+
from packaging import version
33
import pytest
44
import os
55

@@ -36,9 +36,9 @@ def connection_test(connection_root):
3636
permission = "ALL PRIVILEGES"
3737

3838
# Create MySQL users
39-
if LooseVersion(
39+
if version.parse(
4040
connection_root.query("select @@version;").fetchone()[0]
41-
) >= LooseVersion("8.0.0"):
41+
) >= version.parse("8.0.0"):
4242
# create user if necessary on mysql8
4343
connection_root.query(
4444
f"""

0 commit comments

Comments
 (0)