ソースを参照

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.
Thomas Waldmann 8 年 前
コミット
04340ae8b1
1 ファイル変更1 行追加1 行削除
  1. 1 1
      conftest.py

+ 1 - 1
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