mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
use assert[Not]IsInstance where appropriate
This commit is contained in:
parent
f14c7fc33d
commit
b0f5adc3f4
57 changed files with 269 additions and 272 deletions
|
@ -109,7 +109,7 @@ class FutureTest(unittest.TestCase):
|
|||
def test_unicode_literals_exec(self):
|
||||
scope = {}
|
||||
exec "from __future__ import unicode_literals; x = ''" in scope
|
||||
self.assertTrue(isinstance(scope["x"], unicode))
|
||||
self.assertIsInstance(scope["x"], unicode)
|
||||
|
||||
|
||||
def test_main():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue