1
0
Fork 0
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:
Thomas Waldmann 2024-10-12 18:01:41 +02:00
parent e376b7f2fa
commit 450375167e
No known key found for this signature in database
GPG key ID: 243ACFA951F78E01

View file

@ -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