mirror of
https://github.com/python/cpython.git
synced 2025-07-30 22:54:16 +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
|
@ -33,7 +33,7 @@ class RoundtripLegalSyntaxTestCase(unittest.TestCase):
|
|||
code = suite.compile()
|
||||
scope = {}
|
||||
exec code in scope
|
||||
self.assertTrue(isinstance(scope["x"], unicode))
|
||||
self.assertIsInstance(scope["x"], unicode)
|
||||
|
||||
def check_suite(self, s):
|
||||
self.roundtrip(parser.suite, s)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue