requirements-test: Move ImportError workarounds in it
Move workarounds introduced in f7b35626 and 55aa143d from requirements.txt file to requirements-test.txt as those break debian package installation.
See swh/meta$1288.
Migrated from D7231 (view on Phabricator)