[pypy-svn] rev 2514 - pypy/trunk/src/pypy/tool

sschwarzer at codespeak.net sschwarzer at codespeak.net
Thu Dec 18 16:28:01 CET 2003


Author: sschwarzer
Date: Thu Dec 18 16:28:00 2003
New Revision: 2514

Modified:
   pypy/trunk/src/pypy/tool/newtest.py
Log:
Updated docstrings for comparison methods.


Modified: pypy/trunk/src/pypy/tool/newtest.py
==============================================================================
--- pypy/trunk/src/pypy/tool/newtest.py	(original)
+++ pypy/trunk/src/pypy/tool/newtest.py	Thu Dec 18 16:28:00 2003
@@ -42,6 +42,10 @@
         self.formatted_traceback = None
 
     def __eq__(self, other):
+        """
+        Return True if both TestResult objects are semantically the same.
+        Else, return False.
+        """
         # trivial case
         if self is other:
             return True
@@ -84,8 +88,8 @@
 
     def __eq__(self, other):
         """
-        Return true if this and the other item compare equal. This doesn't
-        necessarily mean that they are the same object.
+        Return True if this and the other item compare equal. (This doesn't
+        necessarily mean that they are the same object.) Else, return False.
         """
         # trivial case
         if self is other:


More information about the Pypy-commit mailing list