|
86 | 86 |
|
87 | 87 | # Ignore all deprecations from IPython etc. |
88 | 88 | warnings.filterwarnings('ignore', category=DeprecationWarning, |
89 | | - module='.*(IPython|ipykernel|jupyter_client|jupyter_core|nbformat|notebook|ipywidgets|storemagic|jedi)') |
| 89 | + module='(IPython|ipykernel|jupyter_client|jupyter_core|nbformat|notebook|ipywidgets|storemagic|jedi)') |
90 | 90 |
|
91 | 91 | # scipy 1.18 introduced reprecation warnings on a number of things they are moving to |
92 | 92 | # numpy, e.g. DeprecationWarning: scipy.array is deprecated |
93 | 93 | # and will be removed in SciPy 2.0.0, use numpy.array instead |
94 | 94 | # This affects networkx 2.2 up and including 2.4 (cf. :trac:29766) |
95 | 95 | warnings.filterwarnings('ignore', category=DeprecationWarning, |
96 | | - module='.*(scipy|networkx)') |
| 96 | + module='(scipy|networkx)') |
97 | 97 |
|
98 | 98 | # Ignore collections.abc warnings, there are a lot of them but they are |
99 | 99 | # harmless. |
100 | 100 | warnings.filterwarnings('ignore', category=DeprecationWarning, |
101 | | - message='.*collections[.]abc.*') |
| 101 | + message='collections[.]abc.*') |
102 | 102 | # However, be sure to keep OUR deprecation warnings |
103 | 103 | warnings.filterwarnings('default', category=DeprecationWarning, |
104 | 104 | message=r'[\s\S]*See https?://trac\.sagemath\.org/[0-9]* for details.') |
105 | 105 |
|
106 | 106 | # Ignore Python 3.9 deprecation warnings |
107 | 107 | warnings.filterwarnings('ignore', category=DeprecationWarning, |
108 | | - module='.*ast') |
| 108 | + module='ast') |
109 | 109 |
|
110 | 110 | # Ignore packaging 20.5 deprecation warnings |
111 | 111 | warnings.filterwarnings('ignore', category=DeprecationWarning, |
112 | | - module='.*packaging') |
| 112 | + module='(.*[.]_vendor[.])?packaging') |
113 | 113 |
|
114 | 114 | ################ end setup warnings ############################### |
115 | 115 |
|
|
0 commit comments