Skip to content

Commit fe8d227

Browse files
committed
Use appropriate numpy int type for platform
1 parent d414efb commit fe8d227

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

spec/pycall/pytypeobject_wrapper_spec.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ module PyCall
1414
specify do
1515
expect(PyCall.builtins.tuple === PyCall.tuple()).to eq(true)
1616
np = PyCall.import_module('numpy')
17-
expect(np.int64 === np.asarray([1])[0]).to eq(true)
17+
case RUBY_PLATFORM
18+
when /mingw32/
19+
expect(np.int32 === np.asarray([1])[0]).to eq(true)
20+
else
21+
expect(np.int64 === np.asarray([1])[0]).to eq(true)
22+
end
1823
expect(np.integer === np.asarray([1])[0]).to eq(true)
1924
end
2025
end

0 commit comments

Comments
 (0)