Explorar o código

Merge pull request #1959 from ThomasWaldmann/pretty-test-fails2

pytest: only rewrite the testsuite, fixes #1938
TW %!s(int64=8) %!d(string=hai) anos
pai
achega
4f0c2ab68c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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