mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
use assert[Not]In where appropriate
This commit is contained in:
parent
8cd0a66a0f
commit
aa98058cc4
86 changed files with 622 additions and 599 deletions
|
@ -428,7 +428,7 @@ class ExceptionTests(unittest.TestCase):
|
|||
return sys.exc_info()
|
||||
e, v, tb = g()
|
||||
self.assertTrue(e is RuntimeError, e)
|
||||
self.assertTrue("maximum recursion depth exceeded" in str(v), v)
|
||||
self.assertIn("maximum recursion depth exceeded", str(v))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue