1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2025-02-21 13:47:16 +00:00

pytest 2 compat

This commit is contained in:
enkore 2016-12-17 15:58:51 +01:00 committed by GitHub
parent 4225009e60
commit 0c959cb67a

View file

@ -3,7 +3,8 @@
import pytest
# needed to get pretty assertion failures in unit tests:
pytest.register_assert_rewrite('borg.testsuite')
if hasattr(pytest, 'register_assert_rewrite'):
pytest.register_assert_rewrite('borg.testsuite')
from borg.logger import setup_logging