Fixed type comparison for np.int on python3.4
This PR fixes some test failures on python<3.5: numpy.int64
is not a subclass of numbers.Integral
so need to directly compare to numpy.integer
.
This PR fixes some test failures on python<3.5: numpy.int64
is not a subclass of numbers.Integral
so need to directly compare to numpy.integer
.