Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:dgarcia:python312:numeric
python-traittypes
python-fix-nptypes.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-fix-nptypes.patch of Package python-traittypes
Index: traittypes-0.2.1/traittypes/tests/test_traittypes.py =================================================================== --- traittypes-0.2.1.orig/traittypes/tests/test_traittypes.py +++ traittypes-0.2.1/traittypes/tests/test_traittypes.py @@ -17,17 +17,17 @@ import xarray as xr class IntArrayTrait(HasTraits): - value = Array().tag(dtype=np.int) + value = Array(dtype=int) class TestIntArray(TraitTestBase): """ - Test dtype validation with a ``dtype=np.int`` + Test dtype validation with a ``dtype=int`` """ obj = IntArrayTrait() _good_values = [1, [1, 2, 3], [[1, 2, 3], [4, 5, 6]], np.array([1])] - _bad_values = [[1, [0, 0]]] + _bad_values = [[1, [0, 0]], ['str'], 'str'] def assertEqual(self, v1, v2): return np.testing.assert_array_equal(v1, v2)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor