| 470 |
| 471 |
| 472 |
| 473 |
| 474 |
| 475 |
| 476 |
| 477 |
| 478 |
| 479 |
| 480 |
| 481 |
| 482 | |
def __init__(self, examples, globs, name, filename, lineno, docstring): |
""" |
Create a new DocTest containing the given examples. The |
DocTest's globals are initialized with a copy of `globs`. |
""" |
assert not isinstance(examples, basestring), \ |
"DocTest no longer accepts str; use DocTestParser instead" |
self.examples = examples |
self.docstring = docstring |
self.globs = globs.copy() |
self.name = name |
self.filename = filename |
self.lineno = lineno | |