Ticket #1144 (closed bug: fixed)

Opened 3 years ago

Last modified 2 years ago

regression tests with xtest.py

Reported by: lanz Owned by: miha
Milestone: 2.5 Component: library
Severity: major Keywords:
Cc: Blocking:
Blocked By:


Numpy divison by zero errors are printed to std error and are silently ignored in regression tests.

The tests should fail in these cases.

For an example try the script docs/reference/rst/code/linear-example.py in [f7272ba4865d]. (this script might be corrected soon, but I am sure there are others with similar warnings)

Change History

comment:1 Changed 2 years ago by janez

  • Status changed from new to assigned
  • Owner set to miha

comment:2 Changed 2 years ago by lanz

Actually all that has to be done is to change 'ignore' to 'error' in line 8 in xtest_one.py:


I really can't understand why somebody would set it to ignore for regression tests?! And it even has a comment saying ignore warnings :)

Anyway, before this is pushed all tests should be rerun to see how many will have problems.

comment:3 Changed 2 years ago by miha

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.