Skip to content

Commit

Permalink
tests: remove psutil checks (iterative#5283)
Browse files Browse the repository at this point in the history
Leftover from iterative#5232
  • Loading branch information
efiop authored Jan 18, 2021
1 parent f8c9797 commit 4f2de7a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/unit/test_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import pytest

from dvc.info import get_dvc_info, psutil
from dvc.info import get_dvc_info

# Python's version is in the shape of:
# <major>.<minor>.<patch>[{a|b|rc}N][.postN][.devN]
Expand Down Expand Up @@ -85,7 +85,6 @@ def test_remotes(tmp_dir, dvc, caplog):
assert re.search("Remotes: (ssh, azure|azure, ssh)", dvc_info)


@pytest.mark.skipif(psutil is None, reason="No psutil.")
def test_fs_info_in_repo(tmp_dir, dvc, caplog):
os.mkdir(dvc.cache.local.cache_dir)
dvc_info = get_dvc_info()
Expand All @@ -104,7 +103,6 @@ def test_info_outside_of_repo(tmp_dir, caplog):
assert "Repo:" not in dvc_info


@pytest.mark.skipif(psutil is None, reason="No psutil.")
def test_fs_info_outside_of_repo(tmp_dir, caplog):
dvc_info = get_dvc_info()
assert re.search(r"DVC version: \d+\.\d+\.\d+.*", dvc_info)
Expand Down

0 comments on commit 4f2de7a

Please sign in to comment.