mirror of
https://github.com/python/cpython.git
synced 2025-08-31 14:07:50 +00:00
Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref tests.
This commit is contained in:
parent
3a20a5dead
commit
25d8aeac7c
8 changed files with 27 additions and 26 deletions
|
@ -196,7 +196,7 @@ class UtilityTests(TestCase):
|
|||
# Check existing value
|
||||
env = {key:alt}
|
||||
util.setup_testing_defaults(env)
|
||||
self.assertTrue(env[key] is alt)
|
||||
self.assertIs(env[key], alt)
|
||||
|
||||
def checkCrossDefault(self,key,value,**kw):
|
||||
util.setup_testing_defaults(kw)
|
||||
|
@ -343,7 +343,7 @@ class HeaderTests(TestCase):
|
|||
self.assertEqual(Headers(test[:]).keys(), ['x'])
|
||||
self.assertEqual(Headers(test[:]).values(), ['y'])
|
||||
self.assertEqual(Headers(test[:]).items(), test)
|
||||
self.assertFalse(Headers(test).items() is test) # must be copy!
|
||||
self.assertIsNot(Headers(test).items(), test) # must be copy!
|
||||
|
||||
h=Headers([])
|
||||
del h['foo'] # should not raise an error
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue