Switch to assert=plain; apparently assert=reinterp is no longer supported
This commit is contained in:
parent
1bd97c67e2
commit
7e5b40d265
|
@ -143,7 +143,7 @@ script:
|
||||||
|
|
||||||
# Run unit tests
|
# Run unit tests
|
||||||
- start_test "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";
|
check_output "unit tests";
|
||||||
- echo "test script finished. Current directory:"
|
- echo "test script finished. Current directory:"
|
||||||
- pwd
|
- pwd
|
||||||
|
|
|
@ -57,7 +57,7 @@ def test_reload():
|
||||||
if oldcfn is None:
|
if oldcfn is None:
|
||||||
# Function did not reload; are we using pytest's assertion rewriting?
|
# Function did not reload; are we using pytest's assertion rewriting?
|
||||||
raise Exception("Function did not reload. (This can happen when using py.test"
|
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_class is v1[0]
|
||||||
assert oldcfn.im_func is v1[2].im_func
|
assert oldcfn.im_func is v1[2].im_func
|
||||||
assert oldcfn.im_self is c
|
assert oldcfn.im_self is c
|
||||||
|
|
Loading…
Reference in New Issue
Block a user