diff --git a/cmake/versions.json b/cmake/versions.json index 9ac4a7478..98dbd8c3a 100644 --- a/cmake/versions.json +++ b/cmake/versions.json @@ -5,7 +5,7 @@ "git_url" : "https://github.com/nv-legate/legate.core.git", "git_shallow": false, "always_download": false, - "git_tag" : "2fb6353407e0498f1cb2f530751b95b8cbc4ca99" + "git_tag" : "a405f595603238c8557cb5fefd3981d190a2fb1d" } } } diff --git a/scripts/hooks/enforce_boilerplate.py b/scripts/hooks/enforce_boilerplate.py index ad6163a0f..a1f70eab8 100644 --- a/scripts/hooks/enforce_boilerplate.py +++ b/scripts/hooks/enforce_boilerplate.py @@ -17,7 +17,6 @@ from typing import NoReturn BOILERPLATE = [ - "np.random.seed(12345)", "sys.exit(pytest.main(sys.argv))", ] diff --git a/tests/integration/test_0d_store.py b/tests/integration/test_0d_store.py index c661a7a57..1701983f4 100644 --- a/tests/integration/test_0d_store.py +++ b/tests/integration/test_0d_store.py @@ -15,7 +15,6 @@ from itertools import product -import numpy as np import pytest import cunumeric as num @@ -36,5 +35,4 @@ def test_0d_region_backed_stores(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_advanced_indexing.py b/tests/integration/test_advanced_indexing.py index fa82b4271..d7da99381 100644 --- a/tests/integration/test_advanced_indexing.py +++ b/tests/integration/test_advanced_indexing.py @@ -969,5 +969,4 @@ def test(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_allclose.py b/tests/integration/test_allclose.py index ce821a1dd..b6b1d8d6d 100755 --- a/tests/integration/test_allclose.py +++ b/tests/integration/test_allclose.py @@ -296,5 +296,4 @@ def test_scalar_rtol_atol_false(a, b): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_amax_amin.py b/tests/integration/test_amax_amin.py index 9ca074e69..f21217e43 100755 --- a/tests/integration/test_amax_amin.py +++ b/tests/integration/test_amax_amin.py @@ -290,5 +290,4 @@ def test_out_invalid_shape(self, func_name, axis_out_shape): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_append.py b/tests/integration/test_append.py index ebb737871..353027546 100644 --- a/tests/integration/test_append.py +++ b/tests/integration/test_append.py @@ -88,5 +88,4 @@ def test_bad_shape(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_arg_reduce.py b/tests/integration/test_arg_reduce.py index f061fddef..4fa422726 100644 --- a/tests/integration/test_arg_reduce.py +++ b/tests/integration/test_arg_reduce.py @@ -205,5 +205,4 @@ def test_argmax_and_argmin_out(self, func_name, ndim, keepdims): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_argsort.py b/tests/integration/test_argsort.py index 6f2f4d988..bdc816c04 100644 --- a/tests/integration/test_argsort.py +++ b/tests/integration/test_argsort.py @@ -226,5 +226,4 @@ def test_basic_complex_axis_sort(self, size, sort_type): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_array.py b/tests/integration/test_array.py index 689c1e79a..7adb8b093 100755 --- a/tests/integration/test_array.py +++ b/tests/integration/test_array.py @@ -192,5 +192,4 @@ def test_invalid_dtype(self, obj, dtype): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_array_creation.py b/tests/integration/test_array_creation.py index 802eb4861..7e9745cfa 100644 --- a/tests/integration/test_array_creation.py +++ b/tests/integration/test_array_creation.py @@ -276,5 +276,4 @@ def test_zero_with_0d_ndarray_shape(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_array_dunders.py b/tests/integration/test_array_dunders.py index 7d2156b85..1c52d5ebf 100644 --- a/tests/integration/test_array_dunders.py +++ b/tests/integration/test_array_dunders.py @@ -125,5 +125,4 @@ def test_array_ufunc_defer(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_array_equal.py b/tests/integration/test_array_equal.py index 741167b1e..ef013d0d7 100755 --- a/tests/integration/test_array_equal.py +++ b/tests/integration/test_array_equal.py @@ -112,5 +112,4 @@ def test_equal_nan_complex_values(equal_nan): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_array_fallback.py b/tests/integration/test_array_fallback.py index 6b5c0ddc5..d4fe47aa0 100644 --- a/tests/integration/test_array_fallback.py +++ b/tests/integration/test_array_fallback.py @@ -13,7 +13,6 @@ # limitations under the License. # -import numpy as np import pytest import cunumeric as num @@ -36,5 +35,4 @@ def test_unimplemented_method_self_fallback(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_array_split.py b/tests/integration/test_array_split.py index e34bd26e8..0a9e660eb 100644 --- a/tests/integration/test_array_split.py +++ b/tests/integration/test_array_split.py @@ -144,5 +144,4 @@ def test_array_split(size): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_astype.py b/tests/integration/test_astype.py index 5ceded56f..5a54a7789 100644 --- a/tests/integration/test_astype.py +++ b/tests/integration/test_astype.py @@ -135,5 +135,4 @@ def test_complex_negative(src_dtype): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_atleast_nd.py b/tests/integration/test_atleast_nd.py index 800938a07..3946cb92f 100644 --- a/tests/integration/test_atleast_nd.py +++ b/tests/integration/test_atleast_nd.py @@ -95,5 +95,4 @@ def test_atleast_nd(dim): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_binary_op_broadcast.py b/tests/integration/test_binary_op_broadcast.py index 5ad9c165e..25d1a0757 100644 --- a/tests/integration/test_binary_op_broadcast.py +++ b/tests/integration/test_binary_op_broadcast.py @@ -70,5 +70,4 @@ def test_random(shape, ndim): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_binary_op_complex.py b/tests/integration/test_binary_op_complex.py index 8bac0394e..1eaebc951 100644 --- a/tests/integration/test_binary_op_complex.py +++ b/tests/integration/test_binary_op_complex.py @@ -84,5 +84,4 @@ def test_pow(x, y): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_binary_op_typing.py b/tests/integration/test_binary_op_typing.py index 1987aa525..5cb7ee8f5 100644 --- a/tests/integration/test_binary_op_typing.py +++ b/tests/integration/test_binary_op_typing.py @@ -147,5 +147,4 @@ def test_array_scalar(lhs_np, rhs_np, lhs_num, rhs_num): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_binary_ufunc.py b/tests/integration/test_binary_ufunc.py index 7bc327a25..4d2a9b7db 100644 --- a/tests/integration/test_binary_ufunc.py +++ b/tests/integration/test_binary_ufunc.py @@ -235,5 +235,4 @@ def parse_inputs(in_str, dtype_str): in_np = parse_inputs(args.inputs, args.dtypes) check_ops([args.op], in_np) else: - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_bincount.py b/tests/integration/test_bincount.py index c5ad0b3d4..c57f89584 100644 --- a/tests/integration/test_bincount.py +++ b/tests/integration/test_bincount.py @@ -181,5 +181,4 @@ def test_bincount_size_one(weights): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_bits.py b/tests/integration/test_bits.py index 83fcb69b1..7f5e67cea 100644 --- a/tests/integration/test_bits.py +++ b/tests/integration/test_bits.py @@ -214,5 +214,4 @@ def test_pack_unpack(ndim, bitorder, dtype): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_block.py b/tests/integration/test_block.py index 99f6c3b22..cae10ea7c 100644 --- a/tests/integration/test_block.py +++ b/tests/integration/test_block.py @@ -267,5 +267,4 @@ def test_different_ndims_depths(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_broadcast.py b/tests/integration/test_broadcast.py index 6ce36785e..433dc6bb0 100644 --- a/tests/integration/test_broadcast.py +++ b/tests/integration/test_broadcast.py @@ -190,5 +190,4 @@ def test_broadcast_to_mainpulation(dim): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_cholesky.py b/tests/integration/test_cholesky.py index 9716439c8..6ed8e35f8 100644 --- a/tests/integration/test_cholesky.py +++ b/tests/integration/test_cholesky.py @@ -74,5 +74,4 @@ def test_complex(n): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_clip.py b/tests/integration/test_clip.py index b9720b7db..f8431fda2 100644 --- a/tests/integration/test_clip.py +++ b/tests/integration/test_clip.py @@ -201,5 +201,4 @@ def test_out_with_array_amin(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_complex_ops.py b/tests/integration/test_complex_ops.py index 1653704dc..626b9c781 100644 --- a/tests/integration/test_complex_ops.py +++ b/tests/integration/test_complex_ops.py @@ -95,5 +95,4 @@ def test_assignment(real_val, imag_val): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_compress.py b/tests/integration/test_compress.py index 5bdd89fd5..7247685e6 100644 --- a/tests/integration/test_compress.py +++ b/tests/integration/test_compress.py @@ -175,5 +175,4 @@ def test_ndim_out(ndim): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_concatenate_stack.py b/tests/integration/test_concatenate_stack.py index 52aba1672..754766fff 100644 --- a/tests/integration/test_concatenate_stack.py +++ b/tests/integration/test_concatenate_stack.py @@ -567,5 +567,4 @@ def test_arrays_mismatched_shape(self, arrays): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_contains.py b/tests/integration/test_contains.py index 7d0ccb22b..23811ba74 100644 --- a/tests/integration/test_contains.py +++ b/tests/integration/test_contains.py @@ -15,7 +15,6 @@ from functools import reduce -import numpy as np import pytest from utils.generators import mk_seq_array @@ -61,5 +60,4 @@ def test_complex(size): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_convolve.py b/tests/integration/test_convolve.py index c168bb8dc..7a318668d 100644 --- a/tests/integration/test_convolve.py +++ b/tests/integration/test_convolve.py @@ -140,5 +140,4 @@ def test_ndim(ndim): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_copy.py b/tests/integration/test_copy.py index d4cb667dc..17b2b0aa6 100644 --- a/tests/integration/test_copy.py +++ b/tests/integration/test_copy.py @@ -35,5 +35,4 @@ def test_basic(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_data_interface.py b/tests/integration/test_data_interface.py index c29397b5f..a3329a1b6 100644 --- a/tests/integration/test_data_interface.py +++ b/tests/integration/test_data_interface.py @@ -13,7 +13,6 @@ # limitations under the License. # -import numpy as np import pytest import cunumeric as num @@ -43,5 +42,4 @@ def test_roundtrip(dtype): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_diag_indices.py b/tests/integration/test_diag_indices.py index be2e4906e..567011417 100644 --- a/tests/integration/test_diag_indices.py +++ b/tests/integration/test_diag_indices.py @@ -117,5 +117,4 @@ def test_unequal_length(self, size): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_dot.py b/tests/integration/test_dot.py index 5ae449ae3..40769c354 100644 --- a/tests/integration/test_dot.py +++ b/tests/integration/test_dot.py @@ -75,5 +75,4 @@ def test_out_invalid_dtype(self, dtype): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_einsum.py b/tests/integration/test_einsum.py index f116a86bb..96492b723 100644 --- a/tests/integration/test_einsum.py +++ b/tests/integration/test_einsum.py @@ -312,5 +312,4 @@ def test_order(order): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_einsum_path.py b/tests/integration/test_einsum_path.py index 9e3eff8b1..6efda00b1 100644 --- a/tests/integration/test_einsum_path.py +++ b/tests/integration/test_einsum_path.py @@ -79,5 +79,4 @@ def test_einsum_path_optimize_none(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_exp.py b/tests/integration/test_exp.py index afe54497d..7eff590ae 100644 --- a/tests/integration/test_exp.py +++ b/tests/integration/test_exp.py @@ -129,5 +129,4 @@ def test_casting(casting): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_extract.py b/tests/integration/test_extract.py index 689d4601a..007d93fe0 100644 --- a/tests/integration/test_extract.py +++ b/tests/integration/test_extract.py @@ -294,5 +294,4 @@ def test_vals_empty(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_eye.py b/tests/integration/test_eye.py index d8cec9219..3b2b8acfd 100644 --- a/tests/integration/test_eye.py +++ b/tests/integration/test_eye.py @@ -82,5 +82,4 @@ def testBadK(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_fallback.py b/tests/integration/test_fallback.py index cfda2ded9..4e312d0bb 100644 --- a/tests/integration/test_fallback.py +++ b/tests/integration/test_fallback.py @@ -36,5 +36,4 @@ def test_ufunc(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_fft_c2c.py b/tests/integration/test_fft_c2c.py index 38ae7a1cb..35d192104 100644 --- a/tests/integration/test_fft_c2c.py +++ b/tests/integration/test_fft_c2c.py @@ -268,5 +268,4 @@ def test_fftn_dtype(dtype, func): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_fft_c2r.py b/tests/integration/test_fft_c2r.py index 4b2b4df7d..30e5c9b34 100644 --- a/tests/integration/test_fft_c2r.py +++ b/tests/integration/test_fft_c2r.py @@ -214,5 +214,4 @@ def test_4d(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_fft_hermitian.py b/tests/integration/test_fft_hermitian.py index 7227a855b..997821895 100644 --- a/tests/integration/test_fft_hermitian.py +++ b/tests/integration/test_fft_hermitian.py @@ -64,5 +64,4 @@ def test_1d_inverse(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_fft_r2c.py b/tests/integration/test_fft_r2c.py index bbe6d128e..e7b829fef 100644 --- a/tests/integration/test_fft_r2c.py +++ b/tests/integration/test_fft_r2c.py @@ -216,5 +216,4 @@ def test_4d(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_fill.py b/tests/integration/test_fill.py index c325f6963..d77ae8e07 100644 --- a/tests/integration/test_fill.py +++ b/tests/integration/test_fill.py @@ -152,5 +152,4 @@ def test_fill_string_to_float() -> None: if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_fill_diagonal.py b/tests/integration/test_fill_diagonal.py index 87e71a4f6..fc18783d3 100644 --- a/tests/integration/test_fill_diagonal.py +++ b/tests/integration/test_fill_diagonal.py @@ -128,5 +128,4 @@ def test_val_none(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_flags.py b/tests/integration/test_flags.py index 0bb8ce12c..f7e8f16ac 100644 --- a/tests/integration/test_flags.py +++ b/tests/integration/test_flags.py @@ -140,5 +140,4 @@ def test_views_inherit_writeable(self, params): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_flatten.py b/tests/integration/test_flatten.py index 46719a422..f83ad2704 100644 --- a/tests/integration/test_flatten.py +++ b/tests/integration/test_flatten.py @@ -85,5 +85,4 @@ def test_bad_string_order(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_flip.py b/tests/integration/test_flip.py index d1cdbcee1..587b8c3b5 100644 --- a/tests/integration/test_flip.py +++ b/tests/integration/test_flip.py @@ -104,5 +104,4 @@ def test_axis_2d(self, axis): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_floating.py b/tests/integration/test_floating.py index 124db6f2c..36304949e 100644 --- a/tests/integration/test_floating.py +++ b/tests/integration/test_floating.py @@ -142,5 +142,4 @@ def test_typing_unary(fun, dtype, shape): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_get_item.py b/tests/integration/test_get_item.py index f543b62ed..724fe850f 100644 --- a/tests/integration/test_get_item.py +++ b/tests/integration/test_get_item.py @@ -69,5 +69,4 @@ def test_empty_slice(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_histogram.py b/tests/integration/test_histogram.py index fefd3757a..92824f0da 100644 --- a/tests/integration/test_histogram.py +++ b/tests/integration/test_histogram.py @@ -207,5 +207,4 @@ def test_histogram_singleton_empty(src, bins): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_identity.py b/tests/integration/test_identity.py index 25dd7172a..716eae725 100644 --- a/tests/integration/test_identity.py +++ b/tests/integration/test_identity.py @@ -72,5 +72,4 @@ def test_dtype(dtype): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_index_routines.py b/tests/integration/test_index_routines.py index a89534ebe..c86f62e97 100644 --- a/tests/integration/test_index_routines.py +++ b/tests/integration/test_index_routines.py @@ -557,5 +557,4 @@ def test_k_none(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_indices.py b/tests/integration/test_indices.py index 2de03c01b..55a369975 100644 --- a/tests/integration/test_indices.py +++ b/tests/integration/test_indices.py @@ -110,5 +110,4 @@ def test_indices_sparse(self, ndim): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_ingest.py b/tests/integration/test_ingest.py index 272f2080d..8ca6bfbcd 100644 --- a/tests/integration/test_ingest.py +++ b/tests/integration/test_ingest.py @@ -98,5 +98,4 @@ def test(custom_partitioning, custom_sharding): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_inlinemap-keeps-region-alive.py b/tests/integration/test_inlinemap-keeps-region-alive.py index 347391d05..15de386aa 100644 --- a/tests/integration/test_inlinemap-keeps-region-alive.py +++ b/tests/integration/test_inlinemap-keeps-region-alive.py @@ -15,7 +15,6 @@ import gc -import numpy as np import pytest import cunumeric as num @@ -30,5 +29,4 @@ def test_all(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_inner.py b/tests/integration/test_inner.py index 14f26408f..24904a07c 100644 --- a/tests/integration/test_inner.py +++ b/tests/integration/test_inner.py @@ -13,7 +13,6 @@ # limitations under the License. # -import numpy as np import pytest from legate.core import LEGATE_MAX_DIM from utils.contractions import check_default @@ -63,5 +62,4 @@ def test_out_invalid_shape(self, shape): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_input_output.py b/tests/integration/test_input_output.py index 543b0c5ce..9f25de50c 100644 --- a/tests/integration/test_input_output.py +++ b/tests/integration/test_input_output.py @@ -81,5 +81,4 @@ def test_ndarray_tofile(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_intra_array_copy.py b/tests/integration/test_intra_array_copy.py index 9a2bb25f6..c783e2bb7 100644 --- a/tests/integration/test_intra_array_copy.py +++ b/tests/integration/test_intra_array_copy.py @@ -146,5 +146,4 @@ def test_overlap(ndim): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_item.py b/tests/integration/test_item.py index 433053517..09d506214 100644 --- a/tests/integration/test_item.py +++ b/tests/integration/test_item.py @@ -91,5 +91,4 @@ def test_ndim(ndim): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_itemset.py b/tests/integration/test_itemset.py index 32c45e109..0329be4d3 100644 --- a/tests/integration/test_itemset.py +++ b/tests/integration/test_itemset.py @@ -107,5 +107,4 @@ def test_ndim(ndim): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_jacobi.py b/tests/integration/test_jacobi.py index 72823a4b6..bdca2e3cc 100644 --- a/tests/integration/test_jacobi.py +++ b/tests/integration/test_jacobi.py @@ -60,5 +60,4 @@ def test_basic(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_length.py b/tests/integration/test_length.py index a5a11ed18..cb79b642a 100644 --- a/tests/integration/test_length.py +++ b/tests/integration/test_length.py @@ -13,7 +13,6 @@ # limitations under the License. # -import numpy as np import pytest import cunumeric as num @@ -48,5 +47,4 @@ def test_method(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_linspace.py b/tests/integration/test_linspace.py index 8930f782f..89b0ee727 100644 --- a/tests/integration/test_linspace.py +++ b/tests/integration/test_linspace.py @@ -327,5 +327,4 @@ def test_stop_none(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_logic.py b/tests/integration/test_logic.py index aabc99946..4d15524b1 100644 --- a/tests/integration/test_logic.py +++ b/tests/integration/test_logic.py @@ -275,5 +275,4 @@ def test_arrays_invalid_shape(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_logical.py b/tests/integration/test_logical.py index cb835ba75..ca9b99220 100644 --- a/tests/integration/test_logical.py +++ b/tests/integration/test_logical.py @@ -173,5 +173,4 @@ def test_out_invalid_shape(self, func, axis, out_shape): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_lstm_backward_test.py b/tests/integration/test_lstm_backward_test.py index cb95b1da7..ae9428f22 100644 --- a/tests/integration/test_lstm_backward_test.py +++ b/tests/integration/test_lstm_backward_test.py @@ -139,5 +139,4 @@ def test_basic(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_lstm_simple_forward.py b/tests/integration/test_lstm_simple_forward.py index 4d741a41b..2e2936ad8 100644 --- a/tests/integration/test_lstm_simple_forward.py +++ b/tests/integration/test_lstm_simple_forward.py @@ -13,7 +13,6 @@ # limitations under the License. # -import numpy as np import pytest import cunumeric as num @@ -68,5 +67,4 @@ def test_basic(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_map_reduce.py b/tests/integration/test_map_reduce.py index d427970e6..70379460f 100644 --- a/tests/integration/test_map_reduce.py +++ b/tests/integration/test_map_reduce.py @@ -34,5 +34,4 @@ def test_basic(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_mask.py b/tests/integration/test_mask.py index e31e12409..afe4987e3 100644 --- a/tests/integration/test_mask.py +++ b/tests/integration/test_mask.py @@ -50,5 +50,4 @@ def test_inverted_lhs(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_mask_indices.py b/tests/integration/test_mask_indices.py index 02c4b1fca..2bcc88212 100644 --- a/tests/integration/test_mask_indices.py +++ b/tests/integration/test_mask_indices.py @@ -114,5 +114,4 @@ def test_mask_func_none(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_matmul.py b/tests/integration/test_matmul.py index bedc62bcc..7a0759e0d 100644 --- a/tests/integration/test_matmul.py +++ b/tests/integration/test_matmul.py @@ -208,5 +208,4 @@ def test_invalid_casting(self, dtype): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_matrix_power.py b/tests/integration/test_matrix_power.py index a0b972551..de4838798 100644 --- a/tests/integration/test_matrix_power.py +++ b/tests/integration/test_matrix_power.py @@ -107,5 +107,4 @@ def test_n_negative_int(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_mean.py b/tests/integration/test_mean.py index 4b82929a4..0f9064280 100755 --- a/tests/integration/test_mean.py +++ b/tests/integration/test_mean.py @@ -158,5 +158,4 @@ def test_out_invalid_shape(self, axis_out_shape): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_min_on_gpu.py b/tests/integration/test_min_on_gpu.py index 494cdd212..2a5345c4f 100644 --- a/tests/integration/test_min_on_gpu.py +++ b/tests/integration/test_min_on_gpu.py @@ -13,7 +13,6 @@ # limitations under the License. # -import numpy as np import pytest import cunumeric as num @@ -27,5 +26,4 @@ def test_min(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_moveaxis.py b/tests/integration/test_moveaxis.py index 76ce63483..d52a98f3d 100644 --- a/tests/integration/test_moveaxis.py +++ b/tests/integration/test_moveaxis.py @@ -124,5 +124,4 @@ def test_axis_none(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_msort.py b/tests/integration/test_msort.py index db02f0aeb..fbb1cdac0 100644 --- a/tests/integration/test_msort.py +++ b/tests/integration/test_msort.py @@ -83,5 +83,4 @@ def test_basic_complex(self, size): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_multi_dot.py b/tests/integration/test_multi_dot.py index 29a8f4f44..1c4ca3d05 100644 --- a/tests/integration/test_multi_dot.py +++ b/tests/integration/test_multi_dot.py @@ -146,5 +146,4 @@ def test_out_invalid_dtype(self, dtype): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_nan_reduction.py b/tests/integration/test_nan_reduction.py index 69146ef9f..34bbd1447 100644 --- a/tests/integration/test_nan_reduction.py +++ b/tests/integration/test_nan_reduction.py @@ -371,5 +371,4 @@ def test_disallowed_dtype_nanprod(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_nanarg_reduction.py b/tests/integration/test_nanarg_reduction.py index a04fc5798..9956244a2 100644 --- a/tests/integration/test_nanarg_reduction.py +++ b/tests/integration/test_nanarg_reduction.py @@ -278,5 +278,4 @@ def test_out_dtype_mismatch(self, func_name): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_ndim.py b/tests/integration/test_ndim.py index dd0d94dd7..c9bba7f07 100644 --- a/tests/integration/test_ndim.py +++ b/tests/integration/test_ndim.py @@ -52,5 +52,4 @@ def test_python_values_diff_dim(input): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_nonzero.py b/tests/integration/test_nonzero.py index a4f6fd781..8d525446c 100644 --- a/tests/integration/test_nonzero.py +++ b/tests/integration/test_nonzero.py @@ -188,5 +188,4 @@ def test_deprecated_0d(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_norm.py b/tests/integration/test_norm.py index d971a3499..f38ed8804 100644 --- a/tests/integration/test_norm.py +++ b/tests/integration/test_norm.py @@ -173,5 +173,4 @@ def test_invalid_ord_for_matrices(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_ones.py b/tests/integration/test_ones.py index 4ee528b1f..918045dd5 100644 --- a/tests/integration/test_ones.py +++ b/tests/integration/test_ones.py @@ -86,5 +86,4 @@ def test_basic_dtype(self, size, dtype): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_outer.py b/tests/integration/test_outer.py index f70965218..7ce71a68f 100644 --- a/tests/integration/test_outer.py +++ b/tests/integration/test_outer.py @@ -139,5 +139,4 @@ def test_out_invalid_dtype(self, src_dt, out_dt): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_overwrite_slice.py b/tests/integration/test_overwrite_slice.py index c8cd1c950..5ae4070fa 100644 --- a/tests/integration/test_overwrite_slice.py +++ b/tests/integration/test_overwrite_slice.py @@ -73,5 +73,4 @@ def test_basic(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_partition.py b/tests/integration/test_partition.py index 3ccab94db..bd40c2dd1 100644 --- a/tests/integration/test_partition.py +++ b/tests/integration/test_partition.py @@ -226,5 +226,4 @@ def test_kth_out_of_bound(self, kth): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_prod.py b/tests/integration/test_prod.py index ee6121328..8b627ecd1 100644 --- a/tests/integration/test_prod.py +++ b/tests/integration/test_prod.py @@ -338,5 +338,4 @@ def test_initial(self, size): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_put.py b/tests/integration/test_put.py index 0bc3e3023..aced0ce64 100644 --- a/tests/integration/test_put.py +++ b/tests/integration/test_put.py @@ -235,5 +235,4 @@ def test_invalid_mode(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_put_along_axis.py b/tests/integration/test_put_along_axis.py index e73ba79fa..9386f8d92 100644 --- a/tests/integration/test_put_along_axis.py +++ b/tests/integration/test_put_along_axis.py @@ -236,5 +236,4 @@ def test_values_axis_none(self, shape): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_putmask.py b/tests/integration/test_putmask.py index 91d6b7e90..26926b1be 100644 --- a/tests/integration/test_putmask.py +++ b/tests/integration/test_putmask.py @@ -245,5 +245,4 @@ def test_a_values_different_dtype(self, dtype_val): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_randint.py b/tests/integration/test_randint.py index 195dfc922..84bd4778c 100644 --- a/tests/integration/test_randint.py +++ b/tests/integration/test_randint.py @@ -13,7 +13,6 @@ # limitations under the License. # -import numpy as np import pytest import cunumeric as num @@ -30,5 +29,4 @@ def test_2d(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_random_advanced.py b/tests/integration/test_random_advanced.py index 242b01821..72d6861c2 100644 --- a/tests/integration/test_random_advanced.py +++ b/tests/integration/test_random_advanced.py @@ -269,5 +269,4 @@ def test_hypergeometric_invalid_args(self, ngood, nbad, nsample): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_random_beta.py b/tests/integration/test_random_beta.py index 6dc8fd0dd..8abb4f1a7 100644 --- a/tests/integration/test_random_beta.py +++ b/tests/integration/test_random_beta.py @@ -167,5 +167,4 @@ def test_beta_size_none(func, args): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_random_bitgenerator.py b/tests/integration/test_random_bitgenerator.py index 09e1dab4a..7cc6c91f3 100644 --- a/tests/integration/test_random_bitgenerator.py +++ b/tests/integration/test_random_bitgenerator.py @@ -319,5 +319,4 @@ def test_random_out_shape_mismatch(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_random_creation.py b/tests/integration/test_random_creation.py index 60653e585..a69d96b11 100644 --- a/tests/integration/test_random_creation.py +++ b/tests/integration/test_random_creation.py @@ -43,8 +43,6 @@ def reseed_and_gen_random( func: str, seed: Any, *args: Any, **kwargs: Any ) -> Tuple[Any, Any]: """Reseeed singleton rng and generate random in NumPy and cuNumeric.""" - np.random.seed(seed) - num.random.seed(seed) return gen_random_from_both(func, *args, **kwargs) @@ -505,5 +503,4 @@ def test_random_sample_invalid_size(self, size, expected_exc): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_random_gamma.py b/tests/integration/test_random_gamma.py index 56582190e..4aa03d194 100644 --- a/tests/integration/test_random_gamma.py +++ b/tests/integration/test_random_gamma.py @@ -152,5 +152,4 @@ def test_gamma_size_none(func): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_random_straightforward.py b/tests/integration/test_random_straightforward.py index 48213fc16..9ab7d2499 100644 --- a/tests/integration/test_random_straightforward.py +++ b/tests/integration/test_random_straightforward.py @@ -382,5 +382,4 @@ def test_beta_size_none(t, func, args): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_reduction.py b/tests/integration/test_reduction.py index 233e79439..58f133a1f 100644 --- a/tests/integration/test_reduction.py +++ b/tests/integration/test_reduction.py @@ -311,5 +311,4 @@ def test_indexed(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_repeat.py b/tests/integration/test_repeat.py index c8cda0662..1ea9eadef 100644 --- a/tests/integration/test_repeat.py +++ b/tests/integration/test_repeat.py @@ -256,5 +256,4 @@ def test_nd_repeats(ndim): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_reshape.py b/tests/integration/test_reshape.py index b3c81b35f..ee39c6d5f 100644 --- a/tests/integration/test_reshape.py +++ b/tests/integration/test_reshape.py @@ -253,5 +253,4 @@ def test_invalid_order(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_scan.py b/tests/integration/test_scan.py index 7374358dc..1d99f8e7a 100644 --- a/tests/integration/test_scan.py +++ b/tests/integration/test_scan.py @@ -270,5 +270,4 @@ def test_out_invalid_shape(self, op, out_shape): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_searchsorted.py b/tests/integration/test_searchsorted.py index 5ba9e21eb..c3d1461af 100644 --- a/tests/integration/test_searchsorted.py +++ b/tests/integration/test_searchsorted.py @@ -221,5 +221,4 @@ def test_ndim(ndim, side): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_set_item.py b/tests/integration/test_set_item.py index bf60faacd..2314916f5 100644 --- a/tests/integration/test_set_item.py +++ b/tests/integration/test_set_item.py @@ -48,5 +48,4 @@ def test_scalar_ndarray_as_index(arr): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_setflags.py b/tests/integration/test_setflags.py index f30ba58ed..561c6a2cf 100644 --- a/tests/integration/test_setflags.py +++ b/tests/integration/test_setflags.py @@ -142,5 +142,4 @@ def test_set_align_false(ndim): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_shape.py b/tests/integration/test_shape.py index d4972c62d..03656b6c5 100644 --- a/tests/integration/test_shape.py +++ b/tests/integration/test_shape.py @@ -61,5 +61,4 @@ def test_reshape(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_singleton_access.py b/tests/integration/test_singleton_access.py index 054e06237..118d2828f 100644 --- a/tests/integration/test_singleton_access.py +++ b/tests/integration/test_singleton_access.py @@ -115,5 +115,4 @@ def test_all(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_slicing.py b/tests/integration/test_slicing.py index fc039ea55..73b4a4ee4 100644 --- a/tests/integration/test_slicing.py +++ b/tests/integration/test_slicing.py @@ -108,5 +108,4 @@ def test_slice_step(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_solve.py b/tests/integration/test_solve.py index 82a204889..e9b0e2015 100644 --- a/tests/integration/test_solve.py +++ b/tests/integration/test_solve.py @@ -213,5 +213,4 @@ def test_a_singular_matrix(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_sort.py b/tests/integration/test_sort.py index c348d1286..81e06d86a 100644 --- a/tests/integration/test_sort.py +++ b/tests/integration/test_sort.py @@ -214,5 +214,4 @@ def test_compare_complex_arr_axis_sort(self, size, sort_type): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_sort_complex.py b/tests/integration/test_sort_complex.py index 6f7e3ec46..d2ff93c77 100644 --- a/tests/integration/test_sort_complex.py +++ b/tests/integration/test_sort_complex.py @@ -85,5 +85,4 @@ def test_basic_complex(self, size): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_split.py b/tests/integration/test_split.py index a48800b9c..d943f77b7 100644 --- a/tests/integration/test_split.py +++ b/tests/integration/test_split.py @@ -305,5 +305,4 @@ def test_dsplit(size): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_squeeze.py b/tests/integration/test_squeeze.py index c04ce1dc1..84ac8be2e 100644 --- a/tests/integration/test_squeeze.py +++ b/tests/integration/test_squeeze.py @@ -155,5 +155,4 @@ def test_array_axis(size): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_swapaxes.py b/tests/integration/test_swapaxes.py index fade309cf..0217019c9 100644 --- a/tests/integration/test_swapaxes.py +++ b/tests/integration/test_swapaxes.py @@ -208,5 +208,4 @@ def test_axes_none(self, axes): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_take.py b/tests/integration/test_take.py index 5054392ba..afa997a14 100644 --- a/tests/integration/test_take.py +++ b/tests/integration/test_take.py @@ -278,5 +278,4 @@ def test_out_invalid_dtype(self, dtype): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_take_along_axis.py b/tests/integration/test_take_along_axis.py index 42a8b7721..1597b2ff6 100644 --- a/tests/integration/test_take_along_axis.py +++ b/tests/integration/test_take_along_axis.py @@ -149,5 +149,4 @@ def test_indice_none(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_tensordot.py b/tests/integration/test_tensordot.py index 6530d3aa2..dd2873be3 100644 --- a/tests/integration/test_tensordot.py +++ b/tests/integration/test_tensordot.py @@ -13,7 +13,6 @@ # limitations under the License. # -import numpy as np import pytest from legate.core import LEGATE_MAX_DIM from utils.contractions import check_default @@ -88,5 +87,4 @@ def test_out_invalid_shape(self, shape): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_tile.py b/tests/integration/test_tile.py index 4a410d64f..1bfc1dcf8 100644 --- a/tests/integration/test_tile.py +++ b/tests/integration/test_tile.py @@ -72,5 +72,4 @@ def test_basic(size, value): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_trace.py b/tests/integration/test_trace.py index 6c6d07049..aad02ca28 100644 --- a/tests/integration/test_trace.py +++ b/tests/integration/test_trace.py @@ -210,5 +210,4 @@ def test_out_invalid_shape(self, out_shape): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_transpose.py b/tests/integration/test_transpose.py index 5b2c7e27d..4162df713 100644 --- a/tests/integration/test_transpose.py +++ b/tests/integration/test_transpose.py @@ -272,5 +272,4 @@ def test_axes_3d(self, size, axes): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_tri.py b/tests/integration/test_tri.py index 095c82187..127180064 100644 --- a/tests/integration/test_tri.py +++ b/tests/integration/test_tri.py @@ -151,5 +151,4 @@ def test_k_none(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_trilu.py b/tests/integration/test_trilu.py index 48889f58e..10e5f22ca 100644 --- a/tests/integration/test_trilu.py +++ b/tests/integration/test_trilu.py @@ -97,5 +97,4 @@ def test_m_scalar(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_trilu_indices.py b/tests/integration/test_trilu_indices.py index 1f1e592d3..a069fda6f 100644 --- a/tests/integration/test_trilu_indices.py +++ b/tests/integration/test_trilu_indices.py @@ -233,5 +233,4 @@ def test_k_none(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_unary_functions_2d_complex.py b/tests/integration/test_unary_functions_2d_complex.py index e1326941d..bd0b92174 100644 --- a/tests/integration/test_unary_functions_2d_complex.py +++ b/tests/integration/test_unary_functions_2d_complex.py @@ -51,5 +51,4 @@ def test_sqrt(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_unary_ufunc.py b/tests/integration/test_unary_ufunc.py index 99c936ffe..c1deefe85 100644 --- a/tests/integration/test_unary_ufunc.py +++ b/tests/integration/test_unary_ufunc.py @@ -14,7 +14,6 @@ # import argparse -from zlib import adler32 import numpy as np import pytest @@ -28,7 +27,6 @@ def deterministic_op_test(func): # This enforces that inputs are always the same whether # running all tests or a single test with -k. def wrapper_set_seed(op, *args, **kwargs): - np.random.seed(adler32(bytes(op, "utf-8"))) func(op, *args, **kwargs) func(op, *args, **kwargs) @@ -382,5 +380,4 @@ def parse_inputs(in_str, dtype_str): in_np = parse_inputs(args.inputs, args.dtypes) check_ops([args.op], in_np) else: - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_unique.py b/tests/integration/test_unique.py index 624c006aa..28374586c 100644 --- a/tests/integration/test_unique.py +++ b/tests/integration/test_unique.py @@ -71,5 +71,4 @@ def test_parameters(return_index, return_inverse, return_counts, axis): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_update.py b/tests/integration/test_update.py index 48bbdc4fb..49ea59bff 100644 --- a/tests/integration/test_update.py +++ b/tests/integration/test_update.py @@ -13,7 +13,6 @@ # limitations under the License. # -import numpy as np import pytest import cunumeric as num @@ -34,5 +33,4 @@ def test_basic(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_vdot.py b/tests/integration/test_vdot.py index a36c82db1..2cc380587 100644 --- a/tests/integration/test_vdot.py +++ b/tests/integration/test_vdot.py @@ -158,5 +158,4 @@ def test_out_invalid_shape(self, out_shape): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_view.py b/tests/integration/test_view.py index 7d9f3337d..ab27ed19f 100644 --- a/tests/integration/test_view.py +++ b/tests/integration/test_view.py @@ -64,5 +64,4 @@ def test_scalar(value): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_where.py b/tests/integration/test_where.py index 0b7ead603..cd66c0ce7 100644 --- a/tests/integration/test_where.py +++ b/tests/integration/test_where.py @@ -182,5 +182,4 @@ def test_argwhere_scalar(): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/integration/test_window.py b/tests/integration/test_window.py index ea900bb0e..16afeec9a 100644 --- a/tests/integration/test_window.py +++ b/tests/integration/test_window.py @@ -44,5 +44,4 @@ def test_kaiser_window(M, beta): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/unit/cunumeric/_sphinxext/test__comparison_util.py b/tests/unit/cunumeric/_sphinxext/test__comparison_util.py index 42b08d383..d22c9451a 100644 --- a/tests/unit/cunumeric/_sphinxext/test__comparison_util.py +++ b/tests/unit/cunumeric/_sphinxext/test__comparison_util.py @@ -60,5 +60,4 @@ def test_skip(self): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/unit/cunumeric/random/test_bitgenerator.py b/tests/unit/cunumeric/random/test_bitgenerator.py index fb42fb1da..895a49ccc 100644 --- a/tests/unit/cunumeric/random/test_bitgenerator.py +++ b/tests/unit/cunumeric/random/test_bitgenerator.py @@ -13,7 +13,6 @@ # limitations under the License. # -import numpy as np import pytest from mock import patch @@ -87,5 +86,4 @@ def test_seed(self, mock_perf_counter_ns) -> None: if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/unit/cunumeric/test_config.py b/tests/unit/cunumeric/test_config.py index 70630315a..5e85ccfde 100644 --- a/tests/unit/cunumeric/test_config.py +++ b/tests/unit/cunumeric/test_config.py @@ -13,7 +13,6 @@ # limitations under the License. # -import numpy as np import pytest from legate.core import Library from legate.core.context import Context @@ -240,5 +239,4 @@ def test_ScanCode() -> None: if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/unit/cunumeric/test_coverage.py b/tests/unit/cunumeric/test_coverage.py index 71137a03a..bb1ca6b4e 100644 --- a/tests/unit/cunumeric/test_coverage.py +++ b/tests/unit/cunumeric/test_coverage.py @@ -16,7 +16,6 @@ from types import ModuleType from typing import Any -import numpy as np import pytest from mock import MagicMock, patch @@ -497,5 +496,4 @@ def test_ufunc_methods_unary() -> None: if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/unit/cunumeric/test_patch.py b/tests/unit/cunumeric/test_patch.py index e80dbec3a..51911c563 100644 --- a/tests/unit/cunumeric/test_patch.py +++ b/tests/unit/cunumeric/test_patch.py @@ -15,7 +15,6 @@ from subprocess import run -import numpy as np import pytest # TODO: (bev) This probably only works in bash. Skipping the tests until @@ -41,5 +40,4 @@ def test_patch() -> None: if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/unit/cunumeric/test_settings.py b/tests/unit/cunumeric/test_settings.py index eb1b408d3..b51570699 100644 --- a/tests/unit/cunumeric/test_settings.py +++ b/tests/unit/cunumeric/test_settings.py @@ -16,7 +16,6 @@ from pathlib import Path -import numpy as np import pytest from legate.util.fs import read_c_define from legate.util.settings import EnvOnlySetting, PrioritizedSetting @@ -113,5 +112,4 @@ def test_test_default(self, name: str) -> None: if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv)) diff --git a/tests/unit/cunumeric/test_utils.py b/tests/unit/cunumeric/test_utils.py index 12e6d0265..d934bca6a 100644 --- a/tests/unit/cunumeric/test_utils.py +++ b/tests/unit/cunumeric/test_utils.py @@ -304,5 +304,4 @@ def test_explicit_axis(self, a: int, b: int, axes: AxesType): if __name__ == "__main__": import sys - np.random.seed(12345) sys.exit(pytest.main(sys.argv))