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 | e8ce26b98008e60f2116409600c9e3206cb6f109 (patch) | |
tree | e1e097461adb9162a30719e304bdb6bf12aa7c7e /coverage/backunittest.py | |
parent | 064cb5c7ace3331eee08c73d1f63b1034aada089 (diff) | |
download | python-coveragepy-git-e8ce26b98008e60f2116409600c9e3206cb6f109.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 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): |