summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_wsgiref.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-08-24 03:53:23 (GMT)
committerGuido van Rossum <guido@python.org>2006-08-24 03:53:23 (GMT)
commitb053cd8f40dd19985b16f50661640dcefb69888f (patch)
tree88e1c2ce636a6df402a97c51ea9067a46735120a /Lib/test/test_wsgiref.py
parent01c77c66289f8e9c8d15b8da623fae4014ec2edb (diff)
downloadcpython-b053cd8f40dd19985b16f50661640dcefb69888f.zip
cpython-b053cd8f40dd19985b16f50661640dcefb69888f.tar.gz
cpython-b053cd8f40dd19985b16f50661640dcefb69888f.tar.bz2
Killed the <> operator. You must now use !=.
Opportunistically also fixed one or two places where '<> None' should be 'is not None' and where 'type(x) <> y' should be 'not isinstance(x, y)'.
Diffstat (limited to 'Lib/test/test_wsgiref.py')
-rwxr-xr-xLib/test/test_wsgiref.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_wsgiref.py b/Lib/test/test_wsgiref.py
index b42f437..f33c30d 100755
--- a/Lib/test/test_wsgiref.py
+++ b/Lib/test/test_wsgiref.py
@@ -515,7 +515,7 @@ class HandlerTests(TestCase):
"Content-Length: %d\r\n"
"\r\n%s" % (h.error_status,len(h.error_body),h.error_body))
- self.failUnless(h.stderr.getvalue().find("AssertionError")<>-1)
+ self.failUnless("AssertionError" in h.stderr.getvalue())
def testErrorAfterOutput(self):
MSG = "Some output has been sent"
@@ -528,7 +528,7 @@ class HandlerTests(TestCase):
self.assertEqual(h.stdout.getvalue(),
"Status: 200 OK\r\n"
"\r\n"+MSG)
- self.failUnless(h.stderr.getvalue().find("AssertionError")<>-1)
+ self.failUnless("AssertionError" in h.stderr.getvalue())
def testHeaderFormats(self):