[Webkit-unassigned] [Bug 124703] Remove the stderr_write attribute from StyleProcessorConfiguration

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Nov 22 05:00:04 PST 2013


https://bugs.webkit.org/show_bug.cgi?id=124703





--- Comment #11 from László Langó <lango at inf.u-szeged.hu>  2013-11-22 04:58:35 PST ---
(In reply to comment #10)
> (From update of attachment 217660 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=217660&action=review
> 
> > Tools/Scripts/webkitpy/style/checker_unittest.py:580
> >      def setUp(self):
> > -        self._error_messages = []
> > -        """The messages written to _mock_stderr_write() of this class."""
> > +        LoggingTestCase.setUp(self)
> 
> I don't think you need this setUp (and tearDown) method here, because you are explicitly calling the base class' setUp (/tearDown) method. If you don't implement the methods here it'll be inherited, so that's why there is no need for this methods.
> 
> Also calling the base class' method this way is not really good, we should use the super() call for such cases (http://docs.python.org/2/library/functions.html#super).

Ok, in this case there are wrong usage in more unittest (such as filereader_unittest.py)

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list