bpo-38453: Resolve test directories before chdir to them (GH-16723) (cherry picked from commit d83fc2702951f56a7339aa95d62414ed6e0fb40d) Co-authored-by: Steve Dower <steve.dower@python.org>