Closed ivanovmg closed 3 years ago
Thanks for taking a pass at this @ivanovmg ! It looks like pandas is no-longer exporting some of the numpy testing tools?
======================================================================
826ERROR: trackpy.tests.test_feature (unittest.loader._FailedTest)
827----------------------------------------------------------------------
828ImportError: Failed to import test module: trackpy.tests.test_feature
829Traceback (most recent call last):
830 File "/home/travis/mc/envs/testenv/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
831 module = self._get_module_from_name(name)
832 File "/home/travis/mc/envs/testenv/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
833 __import__(name)
834 File "/home/travis/build/soft-matter/trackpy/trackpy/tests/test_feature.py", line 12, in <module>
835 from pandas.testing import assert_produces_warning
836ImportError: cannot import name 'assert_produces_warning'
837
838
839======================================================================
840ERROR: trackpy.tests.test_find (unittest.loader._FailedTest)
841----------------------------------------------------------------------
842ImportError: Failed to import test module: trackpy.tests.test_find
843Traceback (most recent call last):
844 File "/home/travis/mc/envs/testenv/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
845 module = self._get_module_from_name(name)
846 File "/home/travis/mc/envs/testenv/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
847 __import__(name)
848 File "/home/travis/build/soft-matter/trackpy/trackpy/tests/test_find.py", line 10, in <module>
849 from pandas.testing import assert_produces_warning
850ImportError: cannot import name 'assert_produces_warning'
851
852
853======================================================================
854ERROR: trackpy.tests.test_motion (unittest.loader._FailedTest)
855----------------------------------------------------------------------
856ImportError: Failed to import test module: trackpy.tests.test_motion
857Traceback (most recent call last):
858 File "/home/travis/mc/envs/testenv/lib/python3.5/unittest/loader.py", line 428, in _find_test_path
859 module = self._get_module_from_name(name)
860 File "/home/travis/mc/envs/testenv/lib/python3.5/unittest/loader.py", line 369, in _get_module_from_name
861 __import__(name)
862 File "/home/travis/build/soft-matter/trackpy/trackpy/tests/test_motion.py", line 7, in <module>
863 from pandas.testing import (
864ImportError: cannot import name 'assert_almost_equal'
865
866
867
I will take a closer look at this.
Looks like this last commit fixes the issue with the imports.
@ivanovmg Thanks for looking at this. I'll merge this as is and I'll try to have a look at the other test failures today.
Fixes https://github.com/soft-matter/trackpy/issues/631
Changed imports
pandas.util.testing
intopandas.testing
, since starting from pandas 0.20.1,pandas.util.testing
is deprecated.