From c6017abfb7bd32f3cd598ad8df6123bd02d803b3 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Tue, 13 Dec 2016 19:27:01 +0100 Subject: [PATCH] get back pytest's pretty assertion failures, fixes #1938 --- conftest.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conftest.py b/conftest.py index d5423660b..d622e6df1 100644 --- a/conftest.py +++ b/conftest.py @@ -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