WIP: do not merge yet, trying to work around the 50 minute test timeout

see also https://github.com/scipy/scipy/issues/3913