Re: [Fuego] [PATCH] LTP: fix 'UserWarning' in ltp_process.py
"Bird, Tim" <[email protected]> Mon, 14 Dec 2020 20:56:13 +0000
| Newsgroups | dev.linux.lists.fuego |
|---|---|
| Message-ID | <BYAPR13MB2503AF357ACF875C49D875A9FDC70@BYAPR13MB2503.namprd13.prod.outlook.com> |
Looks good. Committed to master and pushed. -- Tim > -----Original Message----- > From: [email protected] <[email protected]> > > From: venkata pyla <[email protected]> > > 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 <[email protected]> > --- > 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.