'Check output, accepting special markers embedded in the output.
If the output didn\'t pass the default validation but the special string
\'#random\' is included, we accept it.'

def check_output(self, want, got, optionflags):

    ret = doctest.OutputChecker.check_output(self, want, got, optionflags)
    if ((not ret) and self.random_re.search(want)):
        return True
    return ret
