Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
sage.doctest.forker.DocTestTask._run: Remove special support for sagenb
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Koeppe committed Jun 22, 2020
1 parent e2dcdee commit 6bec225
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/sage/doctest/forker.py
Original file line number Diff line number Diff line change
Expand Up @@ -2504,12 +2504,9 @@ def _run(self, runner, options, results):
"""
Actually run the doctests with the right set of globals
"""
if self.source.basename.startswith("sagenb."):
import sage.all_notebook as sage_all
else:
# Import Jupyter globals to doctest the Jupyter
# implementation of widgets and interacts
import sage.repl.ipython_kernel.all_jupyter as sage_all
# Import Jupyter globals to doctest the Jupyter
# implementation of widgets and interacts
import sage.repl.ipython_kernel.all_jupyter as sage_all
dict_all = sage_all.__dict__
# Remove '__package__' item from the globals since it is not
# always in the globals in an actual Sage session.
Expand Down

0 comments on commit 6bec225

Please sign in to comment.