mirror of
https://github.com/borgbackup/borg.git
synced 2026-06-12 10:20:08 -04:00
get back pytest's pretty assertion failures, fixes #1938
This commit is contained in:
parent
796ea9edde
commit
c6017abfb7
1 changed files with 2 additions and 0 deletions
|
|
@ -4,6 +4,8 @@ import sys
|
|||
|
||||
import pytest
|
||||
|
||||
# needed to get pretty assertion failures in unit tests:
|
||||
pytest.register_assert_rewrite('borg')
|
||||
|
||||
# This is a hack to fix path problems because "borg" (the package) is in the source root.
|
||||
# When importing the conftest an "import borg" can incorrectly import the borg from the
|
||||
|
|
|
|||
Loading…
Reference in a new issue