diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2014-09-20 12:40:14 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2014-09-20 12:40:14 -0400 |
commit | fa536eebceffff6960feb3e859bf40220fe71816 (patch) | |
tree | 8d165836c1a7f9a1cfa6d8bea4e4166b778d811c /coverage/backunittest.py | |
parent | 10c3ef10744b7d08061630831911ee804f9553bd (diff) | |
download | python-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.py | 11 |
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): |