MAINT: Backport small mod in test_linalg.py from master.

This change managed to slip through the backport. It doesn't seem to
have any effect on test success but it is probably a good thing to
keep things in sync.
Merge pull request #3991 from charris/sync-test_linalg

MAINT: Backport small mod in test_linalg.py from master.