def test_sign_dtype_object(self): # In reference to github issue #6229 foo = np.array([-.1, 0, .1]) a = np.sign(foo.astype(np.object)) b = np.sign(foo) assert_array_equal(a, b)