summaryrefslogtreecommitdiff
path: root/coverage/backunittest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-09-20 12:40:14 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-09-20 12:40:14 -0400
commitfa536eebceffff6960feb3e859bf40220fe71816 (patch)
tree8d165836c1a7f9a1cfa6d8bea4e4166b778d811c /coverage/backunittest.py
parent10c3ef10744b7d08061630831911ee804f9553bd (diff)
downloadpython-coveragepy-fa536eebceffff6960feb3e859bf40220fe71816.tar.gz
Get rid of some backward stuff we no longer need
Diffstat (limited to 'coverage/backunittest.py')
-rw-r--r--coverage/backunittest.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/coverage/backunittest.py b/coverage/backunittest.py
index 6498397..b2b7ca2 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):