#16181: inject_shorthands broken since 6.2beta8
-------------------------------------+-------------------------------------
       Reporter:  darij              |        Owner:
           Type:  defect             |       Status:  needs_review
       Priority:  critical           |    Milestone:  sage-6.2
      Component:  misc               |   Resolution:
       Keywords:  globals,           |    Merged in:
  inject_shorthands, regression,     |    Reviewers:
        Authors:                     |  Work issues:
Report Upstream:  N/A                |       Commit:
         Branch:                     |  6e0f42f336ad394f05040e379252c18c5785967a
  public/combinat/inject_shorthands  |     Stopgaps:
   Dependencies:                     |
-------------------------------------+-------------------------------------

Comment (by darij):

 From `sage/doctest/forker.py`:

 {{{
                 # Make the right set of globals available to doctests
                 if basename.startswith("sagenb."):
                     import sage.all_notebook as sage_all
                 else:
                     import sage.all_cmdline as sage_all
                 sage_namespace = RecordingDict(sage_all.__dict__)
                 sage_namespace['__name__'] = '__main__'
                 sage_namespace['__package__'] = None
                 doctests, extras =
 self.source.create_doctests(sage_namespace)
                 timer = Timer().start()
 }}}

 I'm wondering if we should just axe the line with the `__package__` here?

--
Ticket URL: <http://trac.sagemath.org/ticket/16181#comment:11>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB

-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.

Reply via email to