#18355: Some cleanup in finance/stock
-------------------------+-------------------------------------------------
       Reporter:         |        Owner:
  ncohen                 |       Status:  needs_work
           Type:         |    Milestone:  sage-6.7
  defect                 |   Resolution:
       Priority:  major  |    Merged in:
      Component:         |    Reviewers:  Volker Braun
  finance                |  Work issues:
       Keywords:         |       Commit:
        Authors:         |  b4a0e656abbf19a6cdd9f5a8e57d6851de730b0a
  Nathann Cohen          |     Stopgaps:
Report Upstream:  N/A    |
         Branch:         |
  public/18355           |
   Dependencies:         |
-------------------------+-------------------------------------------------
Changes (by vbraun):

 * status:  positive_review => needs_work


Comment:

 This should be `# optional - internet`
 {{{
 sage -t --long src/sage/finance/stock.py
 **********************************************************************
 File "src/sage/finance/stock.py", line 170, in
 sage.finance.stock.Stock.current_price_data
 Failed example:
     finance.Stock('GOOG').current_price_data()  # random
 Exception raised:
     Traceback (most recent call last):
       File "/Users/buildslave-
 sage/slave/sage_git/build/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 496, in _run
         self.compile_and_execute(example, compiler, test.globs)
       File "/Users/buildslave-
 sage/slave/sage_git/build/local/lib/python2.7/site-
 packages/sage/doctest/forker.py", line 858, in compile_and_execute
         exec(compiled, globs)
       File "<doctest sage.finance.stock.Stock.current_price_data[0]>",
 line 1, in <module>
         finance.Stock('GOOG').current_price_data()  # random
       File "/Users/buildslave-
 sage/slave/sage_git/build/local/lib/python2.7/site-
 packages/sage/finance/stock.py", line 217, in current_price_data
         values = urllib.urlopen(url).read().strip().strip('"').split(',')
       File "/Users/buildslave-
 sage/slave/sage_git/build/local/lib/python/urllib.py", line 87, in urlopen
         return opener.open(url)
       File "/Users/buildslave-
 sage/slave/sage_git/build/local/lib/python/urllib.py", line 208, in open
         return getattr(self, name)(url)
       File "/Users/buildslave-
 sage/slave/sage_git/build/local/lib/python/urllib.py", line 345, in
 open_http
         h.endheaders(data)
       File "/Users/buildslave-
 sage/slave/sage_git/build/local/lib/python/httplib.py", line 991, in
 endheaders
         self._send_output(message_body)
       File "/Users/buildslave-
 sage/slave/sage_git/build/local/lib/python/httplib.py", line 844, in
 _send_output
         self.send(msg)
       File "/Users/buildslave-
 sage/slave/sage_git/build/local/lib/python/httplib.py", line 806, in send
         self.connect()
       File "/Users/buildslave-
 sage/slave/sage_git/build/local/lib/python/httplib.py", line 787, in
 connect
         self.timeout, self.source_address)
       File "/Users/buildslave-
 sage/slave/sage_git/build/local/lib/python/socket.py", line 573, in
 create_connection
         raise err
     IOError: [Errno socket error] [Errno 60] Operation timed out
 **********************************************************************
 1 item had failures:
    1 of   2 in sage.finance.stock.Stock.current_price_data
     [16 tests, 1 failure, 75.08 s]
 }}}

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