Modify test_tsort_partial to accept multiple valid orderings.
This test previously checked for an exact match on the result of tsort.topo_sort, while only a partial ordering is garantueed. The current implementation of topo_sort indeed returns the graph in lexicographical order, but this depends on the order in which dict.popitem() pops and that is a Python implementation detail not to be relied on.