mirror of
https://github.com/python/cpython.git
synced 2025-07-30 14:44:10 +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
|
@ -1385,7 +1385,7 @@ class SubclassWithKwargsTest(unittest.TestCase):
|
|||
Subclass(newarg=1)
|
||||
except TypeError, err:
|
||||
# we expect type errors because of wrong argument count
|
||||
self.assertFalse("does not take keyword arguments" in err.args[0])
|
||||
self.assertNotIn("does not take keyword arguments", err.args[0])
|
||||
|
||||
|
||||
libreftest = """ Doctest for examples in the library reference: libitertools.tex
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue