[Bug 6954] New: AttributeError: 'TestResult' object has no attribute '_write_status'

mercurial-bugs at mercurial-scm.org mercurial-bugs at mercurial-scm.org
Fri Jan 17 14:28:58 UTC 2025


https://bz.mercurial-scm.org/show_bug.cgi?id=6954

            Bug ID: 6954
           Summary: AttributeError: 'TestResult' object has no attribute
                    '_write_status'
           Product: Mercurial
           Version: 6.9.1
          Hardware: PC
                OS: Other
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at mercurial-scm.org
          Reporter: marcel at telka.sk
                CC: mercurial-devel at mercurial-scm.org
    Python Version: ---

Testing fails with this error:


AttributeError: 'TestResult' object has no attribute '_write_status'


The problem seems to be here in tests/run-tests.py:


    def addSuccess(self, test):
        with iolock:
            # bypass the TextTestResult method as do deal with the output
ourself
            super(base_class, self).addSuccess(test)
            if self.showAll:
                self._write_status(test, "ok")      
<----------------------------
            elif self.dots:
                self._write_dot('.')
        self.successes.append(test)

    def addError(self, test, err):
        super(base_class, self).addError(test, err)
        if self.showAll:
            self._write_status(test, "ERROR")       
<----------------------------
        elif self.dots:
            self._write_dot('E')
        if self._options.first:
            self.stop()

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the Mercurial-devel mailing list