mirror of
https://opendev.org/openstack/python-heatclient.git
synced 2026-01-17 07:10:29 +00:00
Remove leftover of Python <= 2.6 support
Change-Id: I7de3cd0dfef8d7aeb0c9ad3e8cc167c1a40cb65d
This commit is contained in:
parent
6b72237c7a
commit
d2bc013a89
1 changed files with 0 additions and 10 deletions
|
|
@ -46,16 +46,6 @@ class TestCase(testtools.TestCase):
|
|||
msg = 'method %s should not have been called' % m
|
||||
self.fail(msg)
|
||||
|
||||
# 2.6 doesn't have the assert dict equals so make sure that it exists
|
||||
if tuple(sys.version_info)[0:2] < (2, 7):
|
||||
|
||||
def assertIsInstance(self, obj, cls, msg=None):
|
||||
"""self.assertTrue(isinstance(obj, cls)), with a nicer message"""
|
||||
|
||||
if not isinstance(obj, cls):
|
||||
standardMsg = '%s is not an instance of %r' % (obj, cls)
|
||||
self.fail(self._formatMessage(msg, standardMsg))
|
||||
|
||||
|
||||
class TestCommand(TestCase):
|
||||
"""Test cliff command classes"""
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue