File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed
Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 1414
1515def main ():
1616 _set_stdout_unbuffered ()
17- _ignore_openpyxl_warnings ()
17+ _suppress_warnings ()
1818 try :
1919 import uvloop
2020
@@ -38,16 +38,13 @@ def main():
3838 print ('' )
3939
4040
41- def _ignore_openpyxl_warnings ():
41+ def _suppress_warnings ():
4242 """
43- Ignore warning about DataValidation extension not supported. This is shown when a xlsx file
44- with unsupported data validation is opened (tipically after saving the file from Excel, which
45- uses some custom extension).
46- To avoid losing data validation, it should be re-created each time the file is saved by the cli.
43+ Suppress all UserWarnings.
4744 """
4845 import warnings
4946
50- warnings .filterwarnings ('ignore' , category = UserWarning , module = 'openpyxl.worksheet._reader' )
47+ warnings .simplefilter ('ignore' , category = UserWarning )
5148
5249
5350def _set_stdout_unbuffered (): # pragma: no cover
Original file line number Diff line number Diff line change @@ -336,7 +336,6 @@ def test_delete_item(
336336 mocked_responses .add (
337337 method = 'DELETE' ,
338338 url = 'https://localhost/public/v1/products/PRD-276-377-545/items/PRD-276-377-545-0001' ,
339- json = {},
340339 status = 204 ,
341340 )
342341
You can’t perform that action at this time.
0 commit comments