TST: Fix test for debian failure.

Backporting #2057 to maintenance.