Home
last modified time | relevance | path

Searched refs:expected_regex (Results 1 – 25 of 33) sorted by relevance

12

/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/unittest/
Dcase.py203 def __init__(self, expected, test_case, expected_regex=None): argument
207 if expected_regex is not None:
208 expected_regex = re.compile(expected_regex)
209 self.expected_regex = expected_regex
270 if self.expected_regex is None:
273 expected_regex = self.expected_regex
274 if not expected_regex.search(str(exc_value)):
276 expected_regex.pattern, str(exc_value)))
315 if (self.expected_regex is not None and
316 not self.expected_regex.search(str(w))):
[all …]
/aosp_15_r20/external/python/cpython3/Lib/unittest/
Dcase.py203 def __init__(self, expected, test_case, expected_regex=None): argument
207 if expected_regex is not None:
208 expected_regex = re.compile(expected_regex)
209 self.expected_regex = expected_regex
270 if self.expected_regex is None:
273 expected_regex = self.expected_regex
274 if not expected_regex.search(str(exc_value)):
276 expected_regex.pattern, str(exc_value)))
315 if (self.expected_regex is not None and
316 not self.expected_regex.search(str(w))):
[all …]
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/unittest/
H A Dcase.py203 def __init__(self, expected, test_case, expected_regex=None): argument
207 if expected_regex is not None:
208 expected_regex = re.compile(expected_regex)
209 self.expected_regex = expected_regex
270 if self.expected_regex is None:
273 expected_regex = self.expected_regex
274 if not expected_regex.search(str(exc_value)):
276 expected_regex.pattern, str(exc_value)))
315 if (self.expected_regex is not None and
316 not self.expected_regex.search(str(w))):
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/python3/lib/python3.11/unittest/
Dcase.py203 def __init__(self, expected, test_case, expected_regex=None): argument
207 if expected_regex is not None:
208 expected_regex = re.compile(expected_regex)
209 self.expected_regex = expected_regex
270 if self.expected_regex is None:
273 expected_regex = self.expected_regex
274 if not expected_regex.search(str(exc_value)):
276 expected_regex.pattern, str(exc_value)))
315 if (self.expected_regex is not None and
316 not self.expected_regex.search(str(w))):
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/python3/lib/python3.11/unittest/
Dcase.py203 def __init__(self, expected, test_case, expected_regex=None): argument
207 if expected_regex is not None:
208 expected_regex = re.compile(expected_regex)
209 self.expected_regex = expected_regex
270 if self.expected_regex is None:
273 expected_regex = self.expected_regex
274 if not expected_regex.search(str(exc_value)):
276 expected_regex.pattern, str(exc_value)))
315 if (self.expected_regex is not None and
316 not self.expected_regex.search(str(w))):
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/python3/lib/python3.11/unittest/
Dcase.py203 def __init__(self, expected, test_case, expected_regex=None): argument
207 if expected_regex is not None:
208 expected_regex = re.compile(expected_regex)
209 self.expected_regex = expected_regex
270 if self.expected_regex is None:
273 expected_regex = self.expected_regex
274 if not expected_regex.search(str(exc_value)):
276 expected_regex.pattern, str(exc_value)))
315 if (self.expected_regex is not None and
316 not self.expected_regex.search(str(w))):
[all …]
/aosp_15_r20/external/tensorflow/tensorflow/python/framework/
H A Derror_interpolation_test.py255 expected_regex = re.compile(rf"node 'One'.*{defined_at}", re.DOTALL)
256 self.assertRegex(interpolated_string, expected_regex)
270 expected_regex = re.compile(
272 self.assertRegex(interpolated_string, expected_regex)
284 expected_regex = re.compile(
286 self.assertRegex(interpolated_string, expected_regex)
296 expected_regex = re.compile(rf"node 'One'.*{defined_at}", re.DOTALL)
297 self.assertRegex(interpolated_string, expected_regex)
/aosp_15_r20/external/tensorflow/tensorflow/python/kernel_tests/sparse_ops/
H A Dsparse_xent_op_test_base.py97 def _testInvalidLabelCPU(self, expected_regex="Received a label value of"): argument
103 expected_regex):
296 def _testScalarHandling(self, expected_regex): argument
299 expected_regex):
310 self._testScalarHandling(expected_regex=".*labels must be 1-D.*")
H A Dsparse_xent_op_d9m_test.py163 expected_regex="indices\[0\] = 4 is not in \[0, 4\)")
186 expected_regex="Expected batch_dims in the range \[0, 0\], but got 1.*")
/aosp_15_r20/external/python/mobly/mobly/
Dasserts.py245 def assert_regex(text, expected_regex, msg=None, extras=None): argument
248 _pyunit_proxy.assertRegex, text, expected_regex, msg=msg, extras=extras
284 expected_exception, expected_regex, extras=None, *args, **kwargs argument
304 expected_exception, expected_regex, extras=extras
/aosp_15_r20/external/python/cpython3/Lib/unittest/test/
Dtest_assertions.py202 for i, expected_regex in enumerate(errors):
210 expected_regex=expected_regex):
Dtest_loader.py394 expected_regex = r"Failed to import test module: abc \(\) //"
399 ImportError, expected_regex, getattr(test, 'abc () //'))
506 expected_regex = r"module 'unittest' has no attribute 'abc \(\) //'"
511 AttributeError, expected_regex, getattr(test, 'abc () //'))
813 expected_regex = r"Failed to import test module: abc \(\) //"
818 ImportError, expected_regex, getattr(test, 'abc () //'))
932 expected_regex = r"module 'unittest' has no attribute 'abc \(\) //'"
937 AttributeError, expected_regex, getattr(test, 'abc () //'))
/aosp_15_r20/prebuilts/build-tools/common/py3-stdlib/unittest/test/
H A Dtest_assertions.py202 for i, expected_regex in enumerate(errors):
210 expected_regex=expected_regex):
H A Dtest_loader.py394 expected_regex = r"Failed to import test module: abc \(\) //"
399 ImportError, expected_regex, getattr(test, 'abc () //'))
506 expected_regex = r"module 'unittest' has no attribute 'abc \(\) //'"
511 AttributeError, expected_regex, getattr(test, 'abc () //'))
813 expected_regex = r"Failed to import test module: abc \(\) //"
818 ImportError, expected_regex, getattr(test, 'abc () //'))
932 expected_regex = r"module 'unittest' has no attribute 'abc \(\) //'"
937 AttributeError, expected_regex, getattr(test, 'abc () //'))
/aosp_15_r20/external/python/cpython3/Lib/test/
Dtest_type_comments.py231 def parse_all(self, source, minver=lowest, maxver=highest, expected_regex=""): argument
240 with self.assertRaisesRegex(SyntaxError, expected_regex,
285 expected_regex="^Cannot have two type comments on def"):
/aosp_15_r20/external/pigweed/pw_console/py/
H A Dlog_filter_test.py91 expected_regex, argument
99 self.assertEqual(expected_regex, result_text)
/aosp_15_r20/external/pytorch/test/
H A Dtest_utils.py895expected_regex = r"(?:CUDA_ERROR_(?:ARRAY_IS_MAPPED|CONTEXT_ALREADY_CURRENT|INVALID_SOURCE|NOT_MAP…
896 self.assertEqual(regex, expected_regex)
904 expected_regex = r"(?:app(?:le)?|ban(?:ana)?)"
905 self.assertEqual(regex, expected_regex)
912 expected_regex = "cudaErrorInvalidMemcpyDirection"
913 self.assertEqual(regex, expected_regex)
/aosp_15_r20/external/tensorflow/tensorflow/python/training/experimental/
H A Dmixed_precision_test.py69 expected_regex = ('"opt" must be an instance of a tf.train.Optimizer or '
71 with self.assertRaisesRegex(ValueError, expected_regex):
/aosp_15_r20/external/perfetto/python/test/
H A Dapi_integrationtest.py145 expected_regex='.*Trace Processor RPC API version:.*'):
293 TraceProcessorException, expected_regex='.*source.*generator.*'):
/aosp_15_r20/tools/test/connectivity/acts/framework/tests/
Dacts_base_class_test.py786 expected_regex=MSG_EXPECTED_EXCEPTION,
802 expected_regex=MSG_EXPECTED_EXCEPTION,
820 expected_regex=MSG_EXPECTED_EXCEPTION,
838 expected_regex=MSG_EXPECTED_EXCEPTION,
/aosp_15_r20/external/python/ipaddress/
Dtest_ipaddress.py2138 def __init__(self, expected_exception, expected_regex): argument
2140 self.expected_regex = re.compile(expected_regex)
2160 if self.expected_regex is None:
2163 expected_regex = self.expected_regex
2164 if not expected_regex.search(str(exc_value)):
2166 expected_regex.pattern, str(exc_value)))
/aosp_15_r20/external/pytorch/test/jit/
H A Dtest_recursive_script.py578 expected_regex="can't take variable number of arguments",
594 expected_regex=re.escape(
/aosp_15_r20/external/pytorch/test/distributed/fsdp/
H A Dtest_fsdp_exec_order.py159 expected_regex=regex,
H A Dtest_fsdp_clip_grad_norm.py333 expected_regex="on rank "
H A Dtest_fsdp_misc.py136 expected_warning=UserWarning, expected_regex=regex
552 expected_warning=UserWarning, expected_regex=regex

12