Skip to content

Commit 71b01aa

Browse files
Eliminate pkg_resources deprecration warning
1 parent 424a193 commit 71b01aa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""System tests for the command line interface."""
22
import subprocess
3-
import pkg_resources
3+
import importlib.metadata
44
import pytest
55
from . import utils
66
from .utils import TESTDATA_DIR
@@ -15,7 +15,7 @@ def test_version():
1515
)
1616
output = result.stdout.decode("utf-8")
1717
assert "Madoop" in output
18-
assert pkg_resources.get_distribution("madoop").version in output
18+
assert importlib.metadata.version("madoop") in output
1919

2020

2121
def test_help():

0 commit comments

Comments
 (0)