Mercurial > hg
changeset 32533:d68f3d6bc214
tests: drop assertIn polyfill now that we're 2.7-only
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sun, 28 May 2017 18:08:14 -0400 |
parents | e4f514627514 |
children | 0048a852b6aa |
files | tests/test-manifest.py |
diffstat | 1 files changed, 0 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-manifest.py Sun May 28 11:13:10 2017 -0700 +++ b/tests/test-manifest.py Sun May 28 18:08:14 2017 -0400 @@ -102,15 +102,6 @@ def parsemanifest(self, text): raise NotImplementedError('parsemanifest not implemented by test case') - def assertIn(self, thing, container, msg=None): - # assertIn new in 2.7, use it if available, otherwise polyfill - sup = getattr(unittest.TestCase, 'assertIn', False) - if sup: - return sup(self, thing, container, msg=msg) - if not msg: - msg = 'Expected %r in %r' % (thing, container) - self.assert_(thing in container, msg) - def testEmptyManifest(self): m = self.parsemanifest(EMTPY_MANIFEST) self.assertEqual(0, len(m))