MCPcopy Index your code
hub / github.com/RustPython/RustPython / addSkip

Method addSkip

extra_tests/custom_text_test_runner.py:502–514  ·  view source on GitHub ↗
(self, test, reason)

Source from the content-addressed store, hash-verified

500 self.addScreenshots(test)
501
502 def addSkip(self, test, reason):
503 super(CustomTextTestResult, self).addSkip(test, reason)
504 if self.show_test_info:
505 # self.stream.writeln(self.separator_pre_result)
506 self.stream.writeln("SKIPPED {0!r}".format(reason))
507 self.stream.flush()
508 self.results["suites"][self.suite_map[self.suite]]["cases"][
509 self.current_case_number
510 ]["result"] = "skipped"
511 self.results["suites"][self.suite_map[self.suite]]["cases"][
512 self.current_case_number
513 ]["note"] = reason
514 self.num_skipped += 1
515
516 def addExpectedFailure(self, test, err):
517 super(CustomTextTestResult, self).addExpectedFailure(test, err)

Callers

nothing calls this directly

Calls 4

superClass · 0.85
writelnMethod · 0.45
formatMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected