mirror of https://github.com/borgbackup/borg.git
fix borg import issue, add comment, fixes #2718
This commit is contained in:
parent
932fb9ec7a
commit
2c3cdf8c6c
|
@ -4,8 +4,6 @@ import sys
|
|||
|
||||
import pytest
|
||||
|
||||
import borg.cache
|
||||
|
||||
# needed to get pretty assertion failures in unit tests:
|
||||
if hasattr(pytest, 'register_assert_rewrite'):
|
||||
pytest.register_assert_rewrite('borg.testsuite')
|
||||
|
@ -27,6 +25,9 @@ try:
|
|||
except ImportError:
|
||||
sys.path = original_path
|
||||
|
||||
# note: if anything from borg needs to be imported, do it below this line.
|
||||
import borg.cache
|
||||
|
||||
|
||||
@pytest.fixture(autouse=True)
|
||||
def clean_env(tmpdir_factory, monkeypatch):
|
||||
|
|
Loading…
Reference in New Issue