mirror of
https://github.com/borgbackup/borg.git
synced 2026-05-28 04:03:21 -04: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 os
|
|||
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