Fix collection of testpaths with ``--pyargs``.