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:
parent
4225009e60
commit
0c959cb67a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue