/aosp_15_r20/external/pytorch/test/torch_np/numpy_tests/lib/ |
H A D | test_index_tricks.py | 32 assert_raises_regex, 111 assert_raises_regex(TypeError, msg1, np.unravel_index, [], (10, 3, 5)) 112 assert_raises_regex(TypeError, msg1, np.unravel_index, (), (10, 3, 5)) 113 assert_raises_regex(TypeError, msg2, np.unravel_index, np.array([]), (10, 3, 5)) 117 assert_raises_regex(TypeError, msg1, np.ravel_multi_index, ([], []), (10, 3)) 118 assert_raises_regex( 121 assert_raises_regex( 203 assert_raises_regex(ValueError, "0d array", np.unravel_index, [0], ()) 204 assert_raises_regex(ValueError, "out of bounds", np.unravel_index, [1], ())
|
H A D | test_function_base.py | 76 assert_raises_regex, 108 assert_raises_regex, 976 assert_raises_regex( 1286 assert_raises_regex( 1615 with assert_raises_regex(TypeError, "wrong number of positional"): 1617 with assert_raises_regex(ValueError, "does not have enough dimensions"): 1619 with assert_raises_regex(ValueError, "inconsistent size for core dimension"): 1623 with assert_raises_regex(TypeError, "wrong number of positional"): 1628 with assert_raises_regex(ValueError, "inconsistent size for core dimension"): 1632 with assert_raises_regex(ValueError, "wrong number of outputs"): [all …]
|
H A D | test_arraysetops.py | 27 from numpy.testing import assert_array_equal, assert_equal, assert_raises_regex 183 with assert_raises_regex(TypeError, msg):
|
/aosp_15_r20/external/pytorch/test/torch_np/numpy_tests/core/ |
H A D | test_shape_base.py | 805 assert_raises_regex(ValueError, msg, block, [1, [2]]) 806 assert_raises_regex(ValueError, msg, block, [1, []]) 807 assert_raises_regex(ValueError, msg, block, [[1], 2]) 808 assert_raises_regex(ValueError, msg, block, [[], 2]) 809 assert_raises_regex( 814 assert_raises_regex(ValueError, "empty", block, []) 815 assert_raises_regex(ValueError, "empty", block, [[]]) 816 assert_raises_regex(ValueError, "empty", block, [[1], []]) 819 assert_raises_regex(TypeError, "tuple", block, ([1, 2], [3, 4])) 820 assert_raises_regex(TypeError, "tuple", block, [(1, 2), (3, 4)])
|
H A D | test_multiarray.py | 51 assert_raises_regex, 66 assert_raises_regex, 4010 assert_raises_regex( 4018 assert_raises_regex( 4050 assert_raises_regex( 5466 assert_raises_regex(TypeError, msg, self.matmul, a, b, out=out)
|
/aosp_15_r20/external/pytorch/torch/testing/_internal/optests/ |
H A D | aot_autograd.py | 11 class assert_raises_regex: class 37 assert_raises_regex_fn=assert_raises_regex,
|
/aosp_15_r20/tools/test/connectivity/acts/framework/tests/ |
D | acts_base_class_test.py | 784 with asserts.assert_raises_regex( 800 with asserts.assert_raises_regex( 818 with asserts.assert_raises_regex( 836 with asserts.assert_raises_regex(
|
/aosp_15_r20/external/pytorch/torch/_numpy/testing/ |
H A D | __init__.py | 12 assert_raises_regex,
|
H A D | utils.py | 1127 def assert_raises_regex(exception_class, expected_regexp, *args, **kwargs): function
|
/aosp_15_r20/tools/test/connectivity/acts_tests/tests/google/fuchsia/dhcp/ |
D | Dhcpv4InteropTest.py | 263 with asserts.assert_raises_regex(Exception, r'failed to start'): 273 with asserts.assert_raises_regex(Exception, r'failed to start'):
|
/aosp_15_r20/external/python/mobly/mobly/ |
D | asserts.py | 283 def assert_raises_regex( function
|
/aosp_15_r20/external/pytorch/test/ |
H A D | test_custom_ops.py | 449 from torch.testing._internal.optests.aot_autograd import assert_raises_regex 451 with assert_raises_regex(RuntimeError, "c"): 453 with assert_raises_regex(RuntimeError, "c.*"): 456 with assert_raises_regex(RuntimeError, "c.*"): 459 with assert_raises_regex(RuntimeError, "c.*"): 462 with assert_raises_regex(RuntimeError, "f"):
|
/aosp_15_r20/external/python/mobly/tests/mobly/ |
D | base_test_test.py | 1452 with asserts.assert_raises_regex( 1468 with asserts.assert_raises_regex( 1486 with asserts.assert_raises_regex( 1505 with asserts.assert_raises_regex(
|
/aosp_15_r20/external/pytorch/test/quantization/core/ |
H A D | test_quantized_op.py | 1206 np.testing.assert_raises_regex(RuntimeError,
|