refs #6588. Fix python test.