mirror of
https://github.com/python/cpython.git
synced 2025-08-30 21:48:47 +00:00
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)'.
This commit is contained in:
parent
01c77c6628
commit
b053cd8f40
36 changed files with 171 additions and 178 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue