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

pytest: only rewrite the testsuite, fixes #1938

do not rewrite the borg application code, just the test code,
so the bytecode tested is identical / very close to the bytecode used in practice.
This commit is contained in:
Thomas Waldmann 2016-12-15 03:02:06 +01:00
parent 7f63ca8922
commit 04340ae8b1

View file

@ -5,7 +5,7 @@
import pytest import pytest
# needed to get pretty assertion failures in unit tests: # needed to get pretty assertion failures in unit tests:
pytest.register_assert_rewrite('borg') pytest.register_assert_rewrite('borg.testsuite')
# This is a hack to fix path problems because "borg" (the package) is in the source root. # 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 # When importing the conftest an "import borg" can incorrectly import the borg from the