@delallea NumPy version treat differently python long. Before version 1.7.1, if it don't fix in int64, it raise an error. With NumPy 1.7.1, if it don't fit in int64, it try to fit in uint64, so it give less error.

So I change the old test to accept an error or an uint64 for a value that fit in uint64. I add new test that check it always fail for a value that don't fit in uint64.

@lamblin I restricted the exception caught.