]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Kill a couple of "<>"
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 4 Jan 2010 23:28:16 +0000 (23:28 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 4 Jan 2010 23:28:16 +0000 (23:28 +0000)
Lib/email/test/test_email.py
Lib/email/test/test_email_renamed.py
Lib/test/test_wsgiref.py

index 5aa8463d2181dc5d686eb21afd3a8bb2e3ba01c6..c25635bfc363c30e1b728e1a14ba8352488d01d6 100644 (file)
@@ -51,7 +51,7 @@ def openfile(filename, mode='r'):
 class TestEmailBase(unittest.TestCase):
     def ndiffAssertEqual(self, first, second):
         """Like assertEqual except use ndiff for readable output."""
-        if first <> second:
+        if first != second:
             sfirst = str(first)
             ssecond = str(second)
             diff = difflib.ndiff(sfirst.splitlines(), ssecond.splitlines())
@@ -2775,7 +2775,7 @@ class TestCharset(unittest.TestCase):
         # Try a charset with None body encoding
         c = Charset('us-ascii')
         eq('hello world', c.body_encode('hello world'))
-        # Try the convert argument, where input codec <> output codec
+        # Try the convert argument, where input codec != output codec
         c = Charset('euc-jp')
         # With apologies to Tokio Kikuchi ;)
         try:
index 928d251ebaee713b0b00fb1b54c17391bb92646a..e5f0b13170c122ba465515f4a764063060e923ab 100644 (file)
@@ -52,7 +52,7 @@ def openfile(filename, mode='r'):
 class TestEmailBase(unittest.TestCase):
     def ndiffAssertEqual(self, first, second):
         """Like assertEqual except use ndiff for readable output."""
-        if first <> second:
+        if first != second:
             sfirst = str(first)
             ssecond = str(second)
             diff = difflib.ndiff(sfirst.splitlines(), ssecond.splitlines())
@@ -2770,7 +2770,7 @@ class TestCharset(unittest.TestCase):
         # Try a charset with None body encoding
         c = Charset('us-ascii')
         eq('hello world', c.body_encode('hello world'))
-        # Try the convert argument, where input codec <> output codec
+        # Try the convert argument, where input codec != output codec
         c = Charset('euc-jp')
         # With apologies to Tokio Kikuchi ;)
         try:
index b6383916f1381c30091d9eb3d59df973407663f1..a3bc99fcf15d762c59da2f94df72da92262d3b74 100755 (executable)
@@ -523,7 +523,7 @@ class HandlerTests(TestCase):
             "Content-Length: %d\r\n"
             "\r\n%s" % (h.error_status,len(h.error_body),h.error_body))
 
-        self.assertTrue(h.stderr.getvalue().find("AssertionError")<>-1)
+        self.assertNotEqual(h.stderr.getvalue().find("AssertionError"), -1)
 
     def testErrorAfterOutput(self):
         MSG = "Some output has been sent"
@@ -536,7 +536,7 @@ class HandlerTests(TestCase):
         self.assertEqual(h.stdout.getvalue(),
             "Status: 200 OK\r\n"
             "\r\n"+MSG)
-        self.assertTrue(h.stderr.getvalue().find("AssertionError")<>-1)
+        self.assertNotEqual(h.stderr.getvalue().find("AssertionError"), -1)
 
 
     def testHeaderFormats(self):