Home | History | Annotate | Download | only in Lib

Lines Matching refs:optionflags

463         DocTestRunner's optionflags).  By default, no options are set.
1181 def __init__(self, checker=None, verbose=None, optionflags=0):
1193 Optional argument `optionflags` can be used to control how the
1202 self.optionflags = optionflags
1203 self.original_optionflags = optionflags
1243 self._checker.output_difference(example, got, self.optionflags))
1287 original_optionflags = self.optionflags
1298 quiet = (self.optionflags & REPORT_ONLY_FIRST_FAILURE and
1302 self.optionflags = original_optionflags
1306 self.optionflags |= optionflag
1308 self.optionflags &= ~optionflag
1311 if self.optionflags & SKIP:
1346 if check(example.want, got, self.optionflags):
1361 elif check(example.exc_msg, exc_msg, self.optionflags):
1365 elif self.optionflags & IGNORE_EXCEPTION_DETAIL:
1368 self.optionflags):
1387 if failures and self.optionflags & FAIL_FAST:
1391 self.optionflags = original_optionflags
1575 def check_output(self, want, got, optionflags):
1601 if not (optionflags & DONT_ACCEPT_TRUE_FOR_1):
1609 if not (optionflags & DONT_ACCEPT_BLANKLINE):
1622 if optionflags & NORMALIZE_WHITESPACE:
1630 if optionflags & ELLIPSIS:
1638 def _do_a_fancy_diff(self, want, got, optionflags):
1640 if not optionflags & (REPORT_UDIFF |
1650 ##if optionflags & ELLIPSIS and ELLIPSIS_MARKER in want:
1655 if optionflags & REPORT_NDIFF:
1661 def output_difference(self, example, got, optionflags):
1665 output (`got`). `optionflags` is the set of option flags used
1671 if not (optionflags & DONT_ACCEPT_BLANKLINE):
1675 if self._do_a_fancy_diff(want, got, optionflags):
1680 if optionflags & REPORT_UDIFF:
1684 elif optionflags & REPORT_CDIFF:
1688 elif optionflags & REPORT_NDIFF:
1860 report=True, optionflags=0, extraglobs=None,
1863 optionflags=0, extraglobs=None, raise_on_error=False,
1898 Optional keyword arg "optionflags" or's together module constants,
1946 runner = DebugRunner(verbose=verbose, optionflags=optionflags)
1948 runner = DocTestRunner(verbose=verbose, optionflags=optionflags)
1964 globs=None, verbose=None, report=True, optionflags=0,
2011 Optional keyword arg "optionflags" or's together module constants,
2068 runner = DebugRunner(verbose=verbose, optionflags=optionflags)
2070 runner = DocTestRunner(verbose=verbose, optionflags=optionflags)
2087 compileflags=None, optionflags=0):
2099 Optional keyword arg `optionflags` specifies options for the
2105 runner = DocTestRunner(verbose=verbose, optionflags=optionflags)
2153 def __init__(self, test, optionflags=0, setUp=None, tearDown=None,
2157 self._dt_optionflags = optionflags
2181 optionflags = self._dt_optionflags
2183 if not (optionflags & REPORTING_FLAGS):
2186 optionflags |= _unittest_reportflags
2188 runner = DocTestRunner(optionflags=optionflags,
2280 runner = DebugRunner(optionflags=self._dt_optionflags,
2367 optionflags
2484 optionflags
2705 optionflags argument.
2777 failures, _ = testmod(m, verbose=verbose, optionflags=options)
2780 verbose=verbose, optionflags=options)