Remove references to 'sys.version_info'

We support Python 3.6 as a minimum now, making these checks no-ops.
Change-Id: Iff6abdc56c5627505e774f40af339e1b5790c4d5
This commit is contained in:
dengzhaosen 2021-04-27 10:27:35 +08:00
parent 90df936708
commit 6a0974117e
1 changed files with 0 additions and 18 deletions

View File

@ -61,24 +61,6 @@ class TestCase(BaseTestCase):
super(TestCase, self).tearDown()
if tuple(sys.version_info)[0:2] < (2, 7):
def assertDictEqual(self, d1, d2, msg=None):
# Simple version taken from 2.7
self.assertIsInstance(d1, dict,
'First argument is not a dictionary')
self.assertIsInstance(d2, dict,
'Second argument is not a dictionary')
if d1 != d2:
if msg:
self.fail(msg)
else:
standardMsg = '%r != %r' % (d1, d2)
self.fail(standardMsg)
TestCase.assertDictEqual = assertDictEqual
class MiddlewareTestCase(BaseTestCase):
def create_middleware(self, cb, **kwargs):