mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-22 07:43:06 +00:00
call register_assert_rewrite before importing borg.testsuite
This commit is contained in:
parent
e376b7f2fa
commit
450375167e
1 changed files with 3 additions and 5 deletions
|
@ -3,20 +3,18 @@
|
|||
|
||||
import pytest
|
||||
|
||||
from borg.testsuite.archiver import BORG_EXES
|
||||
|
||||
if hasattr(pytest, "register_assert_rewrite"):
|
||||
pytest.register_assert_rewrite("borg.testsuite")
|
||||
|
||||
|
||||
from borg.archiver import Archiver # noqa: E402
|
||||
# Ensure that the loggers exist for all tests
|
||||
from borg.logger import setup_logging # noqa: E402
|
||||
|
||||
# Ensure that the loggers exist for all tests
|
||||
setup_logging()
|
||||
|
||||
from borg.archiver import Archiver # noqa: E402
|
||||
from borg.testsuite import has_lchflags, has_llfuse, has_pyfuse3 # noqa: E402
|
||||
from borg.testsuite import are_symlinks_supported, are_hardlinks_supported, is_utime_fully_supported # noqa: E402
|
||||
from borg.testsuite.archiver import BORG_EXES
|
||||
from borg.testsuite.platform_test import fakeroot_detected # noqa: E402
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue