1. andrea_crotti
  2. cpython

Commits

andrea_crotti  committed 892884b

make desired result more explicit

  • Participants
  • Parent commits a4be588
  • Branches pstats

Comments (0)

Files changed (1)

File Lib/test/test_pstats.py

View file
         comp_list = [(0, 1), (1, -1), (2, 1)]
         tup = pstats.TupleComp(comp_list)
         to_sort = [(1, 3, 4), (2, 3, 1), (5, 4, 3)]
-        desired = to_sort[:]
+        desired = [(1, 3, 4), (2, 3, 1), (5, 4, 3)]
         to_sort.sort(key=cmp_to_key(tup.compare))
         self.assertEqual(to_sort, desired)
-        #TODO: add some failing test, to prove how this tuplecomp really works
 
 
 def test_main():