mirror of
https://github.com/python/cpython.git
synced 2025-11-01 10:45:30 +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
|
|
@ -505,8 +505,8 @@ self.assertTrue(X.passed)
|
|||
return C
|
||||
|
||||
varnames = f(1).z
|
||||
self.assertTrue("x" not in varnames)
|
||||
self.assertTrue("y" in varnames)
|
||||
self.assertNotIn("x", varnames)
|
||||
self.assertIn("y", varnames)
|
||||
|
||||
def testLocalsClass_WithTrace(self):
|
||||
# Issue23728: after the trace function returns, the locals()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue