Drop python 2.6 support

Change-Id: Ibd2c83ad19ff9890a9baef7926a1d32fea156ecc
This commit is contained in:
ChangBo Guo(gcb) 2015-11-23 22:19:12 +08:00
parent 499c2b87b6
commit 835c89a9e5
2 changed files with 2 additions and 4 deletions

View File

@ -59,8 +59,7 @@ class TranslatorFactoryTest(test_base.BaseTestCase):
self.assertIsInstance(r, _message.Message) self.assertIsInstance(r, _message.Message)
_lazy.enable_lazy(False) _lazy.enable_lazy(False)
r = tf.primary('some text') r = tf.primary('some text')
# Python 2.6 doesn't have assertNotIsInstance(). self.assertNotIsInstance(r, _message.Message)
self.assertFalse(isinstance(r, _message.Message))
def test_py2(self): def test_py2(self):
_lazy.enable_lazy(False) _lazy.enable_lazy(False)

View File

@ -37,8 +37,7 @@ class TranslationFixtureTest(test_base.BaseTestCase):
def test_immediate(self): def test_immediate(self):
msg = self.trans_fixture.immediate('this is a lazy message') msg = self.trans_fixture.immediate('this is a lazy message')
# Python 2.6 does not have assertNotIsInstance self.assertNotIsInstance(msg, _message.Message)
self.assertFalse(isinstance(msg, _message.Message))
self.assertIsInstance(msg, six.text_type) self.assertIsInstance(msg, six.text_type)
self.assertEqual(msg, u'this is a lazy message') self.assertEqual(msg, u'this is a lazy message')