2008/link-testsuite/harness/lib LinkTestCase.py,1.2,1.3

Update of /sources/public/2008/link-testsuite/harness/lib
In directory hutz:/tmp/cvs-serv3614/harness/lib

Modified Files:
	LinkTestCase.py 
Log Message:
Call superclass constructor in LinkTestCase.__init__() so things work with Python 2.7.

Index: LinkTestCase.py
===================================================================
RCS file: /sources/public/2008/link-testsuite/harness/lib/LinkTestCase.py,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- LinkTestCase.py	30 Jan 2008 07:36:10 -0000	1.2
+++ LinkTestCase.py	23 May 2011 17:10:21 -0000	1.3
@@ -18,6 +18,7 @@
 class LinkTestCase(unittest.TestCase):
     """Atomic Test Case for the link checker suite"""
     def __init__(self, title=None, description=None, docURI=None, runOptions=None, expectResults=None, checker=None):
+        unittest.TestCase.__init__(self, "run_testcase")
         if title:
             self.title = title
         else:
@@ -42,7 +43,6 @@
             self.checker = checker
         else:
             self.checker = W3CLinkCheckerClient()
-        self._testMethodName= "run_testcase"
 
     def shortDescription(self):
         return self.title
@@ -83,4 +83,4 @@
         
 
 if __name__ == '__main__':
-    unittest.main()
\ No newline at end of file
+    unittest.main()

Received on Monday, 23 May 2011 17:10:24 UTC