From f46cc61a3ef609baea88aae3869081a741fc6e69 Mon Sep 17 00:00:00 2001 From: Tim Hatch Date: Thu, 6 Nov 2014 20:37:36 -0800 Subject: python2.6 has no assertSequenceEqual --- tests/test_util.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_util.py b/tests/test_util.py index 7fbbba2d..e480b503 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -145,15 +145,15 @@ class UtilTest(unittest.TestCase): def test_duplicates_removed_seq_types(self): # tuple x = util.duplicates_removed(('a', 'a', 'b')) - self.assertSequenceEqual(('a', 'b'), x) + self.assertEqual(['a', 'b'], x) # list x = util.duplicates_removed(['a', 'a', 'b']) - self.assertSequenceEqual(('a', 'b'), x) + self.assertEqual(['a', 'b'], x) # iterator x = util.duplicates_removed(iter(('a', 'a', 'b'))) - self.assertSequenceEqual(('a', 'b'), x) + self.assertEqual(['a', 'b'], x) def test_duplicates_removed_nonconsecutive(self): # keeps first x = util.duplicates_removed(('a', 'b', 'a')) - self.assertSequenceEqual(('a', 'b'), x) + self.assertEqual(['a', 'b'], x) -- cgit v1.2.1