From 0f5784ab53e945cfddf25b2ceea16ca4acbb86f4 Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Wed, 17 Aug 2016 19:29:57 -0400 Subject: [PATCH] BUG: Fix nondeterministic failure from sorting. --- tests/utils/test_preprocess.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/utils/test_preprocess.py b/tests/utils/test_preprocess.py index b9e0162a..c3ad15df 100644 --- a/tests/utils/test_preprocess.py +++ b/tests/utils/test_preprocess.py @@ -264,7 +264,7 @@ class PreprocessTestCase(TestCase): " for argument 'a', but got 'c' instead." ).format( # We special-case set to show a tuple instead of the set repr. - set_=tuple(set_), + set_=tuple(sorted(set_)), qualname=qualname(f), ) self.assertEqual(e.exception.args[0], expected_message)