Skip to content

Commit

Permalink
call register_assert_rewrite before importing borg.testsuite
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasWaldmann committed Oct 12, 2024
1 parent e376b7f commit 4503751
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/borg/testsuite/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 4503751

Please sign in to comment.