Home
last modified time | relevance | path

Searched refs:assert_raises_regex (Results 1 – 14 of 14) sorted by relevance

/aosp_15_r20/external/pytorch/test/torch_np/numpy_tests/lib/
H A Dtest_index_tricks.py32 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 Dtest_function_base.py76 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 Dtest_arraysetops.py27 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 Dtest_shape_base.py805 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 Dtest_multiarray.py51 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 Daot_autograd.py11 class assert_raises_regex: class
37 assert_raises_regex_fn=assert_raises_regex,
/aosp_15_r20/tools/test/connectivity/acts/framework/tests/
Dacts_base_class_test.py784 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__.py12 assert_raises_regex,
H A Dutils.py1127 def assert_raises_regex(exception_class, expected_regexp, *args, **kwargs): function
/aosp_15_r20/tools/test/connectivity/acts_tests/tests/google/fuchsia/dhcp/
DDhcpv4InteropTest.py263 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/
Dasserts.py283 def assert_raises_regex( function
/aosp_15_r20/external/pytorch/test/
H A Dtest_custom_ops.py449 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/
Dbase_test_test.py1452 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 Dtest_quantized_op.py1206 np.testing.assert_raises_regex(RuntimeError,