From 04340ae8b1d6ae89d90f804ca19c685746d446f9 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 15 Dec 2016 03:02:06 +0100 Subject: [PATCH] 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. --- conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conftest.py b/conftest.py index d622e6df1..197af6fd1 100644 --- a/conftest.py +++ b/conftest.py @@ -5,7 +5,7 @@ import sys import pytest # 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. # When importing the conftest an "import borg" can incorrectly import the borg from the