[Fuego] [PATCH] LTP: fix 'UserWarning' in ltp_process.py

venkata.pyla at toshiba-tsip.com venkata.pyla at toshiba-tsip.com
Mon Dec 14 10:53:34 UTC 2020


From: venkata pyla <venkata.pyla at toshiba-tsip.com>

>From openpyxl version 2.2
Cell styles are deprecated, instead use formatting objects directly

With openpyxl version 2.3 it gives warning (in stretch)
with openpyxl version 2.4 it gives an error (in buster)

Signed-off-by: venkata pyla <venkata.pyla at toshiba-tsip.com>
---
 tests/Functional.LTP/ltp_process.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/Functional.LTP/ltp_process.py b/tests/Functional.LTP/ltp_process.py
index 0f6c051..a8dfb07 100644
--- a/tests/Functional.LTP/ltp_process.py
+++ b/tests/Functional.LTP/ltp_process.py
@@ -262,7 +262,7 @@ fills = {'UNRESOLVED':brok_fill, 'FAILED':fail_fill, 'PASS':pass_fill, 'UNTESTED
 
 def pts_set_style(ws):
     for r in range(2, ws.max_row):
-        ws.cell(row=r, column=2).style.fill = fills[str(ws.cell(row=r, column=2).value)]
+        ws.cell(row=r, column=2).fill = fills[str(ws.cell(row=r, column=2).value)]
     # adjust column widths
     dims ={}
     for row in ws.rows:
-- 
2.20.1

The information contained in this e-mail message and in any
attachments/annexure/appendices is confidential to the 
recipient and may contain privileged information. 
If you are not the intended recipient, please notify the
sender and delete the message along with any 
attachments/annexure/appendices. You should not disclose,
copy or otherwise use the information contained in the
message or any annexure. Any views expressed in this e-mail 
are those of the individual sender except where the sender 
specifically states them to be the views of 
Toshiba Software India Pvt. Ltd. (TSIP),Bangalore.

Although this transmission and any attachments are believed to be
free of any virus or other defect that might affect any computer 
system into which it is received and opened, it is the responsibility
of the recipient to ensure that it is virus free and no responsibility 
is accepted by Toshiba Embedded Software India Pvt. Ltd, for any loss or
damage arising in any way from its use.



More information about the Fuego mailing list