Simplify pip tree
tests to improve performance
#8677
Merged
pip tree
tests to improve performance
#8677