Switch to assert=plain; apparently assert=reinterp is no longer supported

This commit is contained in:
Luke Campagnola 2017-09-06 09:58:42 -07:00
parent 1bd97c67e2
commit 7e5b40d265
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ script:
# Run unit tests
- start_test "unit tests";
PYTHONPATH=. py.test --cov --assert=reinterp pyqtgraph -sv;
PYTHONPATH=. py.test --cov --assert=plain pyqtgraph -sv;
check_output "unit tests";
- echo "test script finished. Current directory:"
- pwd

View File

@ -57,7 +57,7 @@ def test_reload():
if oldcfn is None:
# Function did not reload; are we using pytest's assertion rewriting?
raise Exception("Function did not reload. (This can happen when using py.test"
" with assertion rewriting; use --assert=reinterp or --assert=plain)")
" with assertion rewriting; use --assert=plain for this test.)")
assert oldcfn.im_class is v1[0]
assert oldcfn.im_func is v1[2].im_func
assert oldcfn.im_self is c