summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChangBo Guo(gcb) <eric.guo@easystack.cn>2015-11-23 22:19:12 +0800
committerChangBo Guo(gcb) <eric.guo@easystack.cn>2015-11-23 22:19:12 +0800
commit835c89a9e55522894a271182ec7ef98a11a63b41 (patch)
tree93078c208abd3f94216732db01c4490a2dbbc5e7
parent499c2b87b6381b0e2d0ff87a6c73da8d25a21c2f (diff)
downloadoslo-i18n-835c89a9e55522894a271182ec7ef98a11a63b41.tar.gz
Drop python 2.6 support
Change-Id: Ibd2c83ad19ff9890a9baef7926a1d32fea156ecc
-rw-r--r--oslo_i18n/tests/test_factory.py3
-rw-r--r--oslo_i18n/tests/test_fixture.py3
2 files changed, 2 insertions, 4 deletions
diff --git a/oslo_i18n/tests/test_factory.py b/oslo_i18n/tests/test_factory.py
index 8a3599d..6bbe684 100644
--- a/oslo_i18n/tests/test_factory.py
+++ b/oslo_i18n/tests/test_factory.py
@@ -59,8 +59,7 @@ class TranslatorFactoryTest(test_base.BaseTestCase):
self.assertIsInstance(r, _message.Message)
_lazy.enable_lazy(False)
r = tf.primary('some text')
- # Python 2.6 doesn't have assertNotIsInstance().
- self.assertFalse(isinstance(r, _message.Message))
+ self.assertNotIsInstance(r, _message.Message)
def test_py2(self):
_lazy.enable_lazy(False)
diff --git a/oslo_i18n/tests/test_fixture.py b/oslo_i18n/tests/test_fixture.py
index db67033..8ea9a1c 100644
--- a/oslo_i18n/tests/test_fixture.py
+++ b/oslo_i18n/tests/test_fixture.py
@@ -37,8 +37,7 @@ class TranslationFixtureTest(test_base.BaseTestCase):
def test_immediate(self):
msg = self.trans_fixture.immediate('this is a lazy message')
- # Python 2.6 does not have assertNotIsInstance
- self.assertFalse(isinstance(msg, _message.Message))
+ self.assertNotIsInstance(msg, _message.Message)
self.assertIsInstance(msg, six.text_type)
self.assertEqual(msg, u'this is a lazy message')