瀏覽代碼

Merge pull request #1951 from ThomasWaldmann/pretty-test-fails

get back pytest's pretty assertion failures, fixes #1938
enkore 9 年之前
父節點
當前提交
60b6f5a30e
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      conftest.py

+ 2 - 0
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