forked from pool/python-param
- 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
This commit is contained in:
23
ignore-pandas-assignment-futurewarning.patch
Normal file
23
ignore-pandas-assignment-futurewarning.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
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
|
||||
Reference in New Issue
Block a user