'Create a new DocTest containing the given examples.  The
DocTest\'s globals are initialized with a copy of `globs`.'

def __init__(self, examples, globs, name, filename, lineno, docstring):

    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
