From 91175519586b984be1b469a7eb49679b3ecbe998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Labb=C3=A9?= Date: Thu, 28 Oct 2021 10:38:07 +0200 Subject: [PATCH] 32696: fix failing doctest --- src/sage/finance/stock.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/sage/finance/stock.py b/src/sage/finance/stock.py index ed8cb8ed90b..aa1dbb7dc99 100644 --- a/src/sage/finance/stock.py +++ b/src/sage/finance/stock.py @@ -551,9 +551,7 @@ def load_from_file(self, file): sage: with open(filename, 'w') as fobj: ....: _ = fobj.write("Date,Open,High,Low,Close,Volume\n1212405780,187.80,187.80,187.80,187.80,100\n1212407640,187.75,188.00,187.75,188.00,2000\n1212407700,188.00,188.00,188.00,188.00,1000\n1212408000,188.00,188.11,188.00,188.00,2877\n1212408060,188.00,188.00,188.00,188.00,687") sage: finance.Stock('aapl').load_from_file(filename)[:5] - doctest:warning... - DeprecationWarning: Importing finance from here is deprecated... - [ + ... 1212408060 188.00 188.00 188.00 188.00 687, 1212408000 188.00 188.11 188.00 188.00 2877, 1212407700 188.00 188.00 188.00 188.00 1000,