PreviousBuildDirError test fix

fix for travis failure
https://travis-ci.org/pypa/pip/jobs/6771744