diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-08 12:50:08 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2014-02-08 12:50:08 (GMT) |
commit | 25d8aeac7c1e24df79c18f6391b7e42b873d66d8 (patch) | |
tree | 3171eaac6be60dd8623e5d0ccab67adf38a44215 /Lib/test/test_wsgiref.py | |
parent | 3a20a5deade014a4559a71962600b23ee9f608f4 (diff) | |
download | cpython-25d8aeac7c1e24df79c18f6391b7e42b873d66d8.zip cpython-25d8aeac7c1e24df79c18f6391b7e42b873d66d8.tar.gz cpython-25d8aeac7c1e24df79c18f6391b7e42b873d66d8.tar.bz2 |
Issue #20555: Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref tests.
Diffstat (limited to 'Lib/test/test_wsgiref.py')
-rw-r--r-- | Lib/test/test_wsgiref.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_wsgiref.py b/Lib/test/test_wsgiref.py index 4107664..901f3c9 100644 --- a/Lib/test/test_wsgiref.py +++ b/Lib/test/test_wsgiref.py @@ -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 |