mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
convert old fail* assertions to assert*
This commit is contained in:
parent
98d23f2e06
commit
c9c0f201fe
275 changed files with 4540 additions and 4540 deletions
|
@ -19,7 +19,7 @@ class PEP3120Test(unittest.TestCase):
|
|||
try:
|
||||
import test.badsyntax_pep3120
|
||||
except SyntaxError as msg:
|
||||
self.assert_(str(msg).find("Non-UTF-8 code starting with") >= 0)
|
||||
self.assertTrue(str(msg).find("Non-UTF-8 code starting with") >= 0)
|
||||
else:
|
||||
self.fail("expected exception didn't occur")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue