This is an archive of the discontinued Mercurial Phabricator instance.

tests: do not change sys.path, it can break loading cext.parsers
ClosedPublic

Authored by joerg.sonnenberger on Oct 8 2018, 3:53 PM.

Details

Summary

When running this tests with run-tests, the prefix would resolve
mercurial.cext to the source tree and the attempt to load
mercurial.cext.parsers would therefore fail since it doesn't exist in
it. With the regular search path from run-tests, it is picked up from
the temporary prefix correctly.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision was automatically updated to reflect the committed changes.