From e8ce26b98008e60f2116409600c9e3206cb6f109 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 20 Sep 2014 12:40:14 -0400 Subject: Get rid of some backward stuff we no longer need --- coverage/backunittest.py | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'coverage/backunittest.py') diff --git a/coverage/backunittest.py b/coverage/backunittest.py index 6498397f..b2b7ca2f 100644 --- a/coverage/backunittest.py +++ b/coverage/backunittest.py @@ -23,14 +23,9 @@ class TestCase(unittest.TestCase): # pylint: disable=missing-docstring if not unittest_has('assertCountEqual'): - if unittest_has('assertSameElements'): - def assertCountEqual(self, *args, **kwargs): - # pylint: disable=no-member - return self.assertSameElements(*args, **kwargs) - else: - def assertCountEqual(self, s1, s2): - """Assert these have the same elements, regardless of order.""" - self.assertEqual(set(s1), set(s2)) + def assertCountEqual(self, s1, s2): + """Assert these have the same elements, regardless of order.""" + self.assertEqual(set(s1), set(s2)) if not unittest_has('assertRaisesRegex'): def assertRaisesRegex(self, *args, **kwargs): -- cgit v1.2.1