Extract all doctest examples from the given string, and collect them into a `DocTest` object. `globs`, `name`, `filename`, and `lineno` are attributes for the new `DocTest` object. See the documentation for `DocTest` for more information.
(self, string, globs, name, filename, lineno)
| 667 | return output |
| 668 | |
| 669 | def get_doctest(self, string, globs, name, filename, lineno): |
| 670 | """ |
| 671 | Extract all doctest examples from the given string, and |
| 672 | collect them into a `DocTest` object. |
| 673 | |
| 674 | `globs`, `name`, `filename`, and `lineno` are attributes for |
| 675 | the new `DocTest` object. See the documentation for `DocTest` |
| 676 | for more information. |
| 677 | """ |
| 678 | return DocTest(self.get_examples(string, name), globs, |
| 679 | name, filename, lineno, string) |
| 680 | |
| 681 | def get_examples(self, string, name='<string>'): |
| 682 | """ |
no test coverage detected