From 1835563ab8a1da949a35316d16989236ac585c6c Mon Sep 17 00:00:00 2001 From: Sergey Fedoseev Date: Sat, 9 Feb 2019 15:07:04 +0500 Subject: Removed unneeded list() calls in sorted() argument. --- tests/utils_tests/test_datastructures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/utils_tests/test_datastructures.py b/tests/utils_tests/test_datastructures.py index 0513df69b2..3400b1d65a 100644 --- a/tests/utils_tests/test_datastructures.py +++ b/tests/utils_tests/test_datastructures.py @@ -168,7 +168,7 @@ class CaseInsensitiveMappingTests(SimpleTestCase): CaseInsensitiveMapping([(1, '2')]) def test_list(self): - self.assertEqual(sorted(list(self.dict1)), sorted(['Accept', 'content-type'])) + self.assertEqual(list(self.dict1), ['Accept', 'content-type']) def test_dict(self): self.assertEqual(dict(self.dict1), {'Accept': 'application/json', 'content-type': 'text/html'}) -- cgit v1.3