1
0
Fork 0
mirror of https://github.com/borgbackup/borg.git synced 2024-12-22 15:57:15 +00:00

Merge pull request #8470 from ThomasWaldmann/assert-rewrite

call register_assert_rewrite before importing borg.testsuite
This commit is contained in:
TW 2024-10-12 19:39:32 +02:00 committed by GitHub
commit dd7ce48bd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,20 +3,18 @@
import pytest import pytest
from borg.testsuite.archiver import BORG_EXES
if hasattr(pytest, "register_assert_rewrite"): if hasattr(pytest, "register_assert_rewrite"):
pytest.register_assert_rewrite("borg.testsuite") pytest.register_assert_rewrite("borg.testsuite")
# Ensure that the loggers exist for all tests
from borg.archiver import Archiver # noqa: E402
from borg.logger import setup_logging # noqa: E402 from borg.logger import setup_logging # noqa: E402
# Ensure that the loggers exist for all tests
setup_logging() 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 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 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 from borg.testsuite.platform_test import fakeroot_detected # noqa: E402