Files
python-param/ignore-pandas-assignment-futurewarning.patch
Steve Kowalik aa59cdb400 - Drop patch filter-deprecationwarning.patch, no longer needed.
- Addd patch ignore-pandas-assignment-futurewarning.patch:
  * Ignore a FutureWarning raised from the depths of pandas.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-param?expand=0&rev=66
2025-11-11 01:40:42 +00:00

24 lines
827 B
Diff

Index: param-2.2.1/tests/testfiledeserialization.py
===================================================================
--- param-2.2.1.orig/tests/testfiledeserialization.py
+++ param-2.2.1/tests/testfiledeserialization.py
@@ -2,6 +2,7 @@
import unittest
import param
import sys
+import warnings
from unittest import skipIf
from tempfile import mkdtemp
@@ -197,7 +198,9 @@ class TestFileDeserialization(unittest.T
@pd_skip
def test_data_frame_stata(self):
path = '{}/val.dta'.format(self.temp_dir)
- P.data_frame.to_stata(path, write_index=False)
+ with warnings.catch_warnings():
+ warnings.simplefilter('ignore', category=FutureWarning)
+ P.data_frame.to_stata(path, write_index=False)
self._test_deserialize_array(P, path, 'data_frame')
@pd_skip