#16493: Sage --dev tests broken for non-interactive shells
---------------------------------+-----------------------------------
   Reporter:  robertwb           |            Owner:
       Type:  defect             |           Status:  new
   Priority:  major              |        Milestone:  sage-6.3
  Component:  doctest framework  |         Keywords:
  Merged in:                     |          Authors:  Robert Bradshaw
  Reviewers:                     |  Report Upstream:  N/A
Work issues:                     |           Branch:
     Commit:                     |     Dependencies:
   Stopgaps:                     |
---------------------------------+-----------------------------------
 The manifests itself on various buildbots, giving errors like

 {{{
 File "/scratch/scoder/jenkins/sage/sage-git/src/sage/tests/cmdline.py",
 line 467, in sage.tests.cmdline.test_executable
 Failed example:
     ret, err
 Expected:
     (0, '')
 Got:
     (1, 'Traceback (most recent call last):
   File "/scratch/scoder/jenkins/sage/sage-git/src/bin/sage-dev", line 334,
 in <module>
     parser = parser_from_object(DEV)
   File "/scratch/scoder/jenkins/sage/sage-git/src/bin/sage-dev", line 258,
 in parser_from_object
     parser = argparse.ArgumentParser(*args, **kwds)
   File "/scratch/scoder/jenkins/sage/sage-
 git/local/lib/python/argparse.py", line 1600, in __init__
     help=_(\'show this help message and exit\'))
   File "/scratch/scoder/jenkins/sage/sage-
 git/local/lib/python/argparse.py", line 1291, in add_argument
     self._get_formatter()._format_args(action, None)
   File "/scratch/scoder/jenkins/sage/sage-
 git/local/lib/python/argparse.py", line 2314, in _get_formatter
     return self.formatter_class(prog=self.prog)
   File "/scratch/scoder/jenkins/sage/sage-git/src/bin/sage-dev", line 37,
 in __init__
     width=DEV._sagedev._UI._get_dimensions()[1]-2, *args, **kwds)
   File "/scratch/scoder/jenkins/sage/sage-git/local/lib/python2.7/site-
 packages/sage/dev/cmd_line_interface.py", line 264, in _get_dimensions
     fd = os.open(os.ctermid(), os.O_RDONLY)
 OSError: [Errno 6] No such device or address: \'/dev/tty\'
 }}}

--
Ticket URL: <http://trac.sagemath.org/ticket/16493>
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