/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/python3/lib/python3.11/unittest/ |
D | case.py | 203 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/ |
D | case.py | 203 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 D | case.py | 203 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/ |
D | case.py | 203 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/ |
D | case.py | 203 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/ |
D | case.py | 203 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 D | error_interpolation_test.py | 255 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 D | sparse_xent_op_test_base.py | 97 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 D | sparse_xent_op_d9m_test.py | 163 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/ |
D | asserts.py | 245 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/ |
D | test_assertions.py | 202 for i, expected_regex in enumerate(errors): 210 expected_regex=expected_regex):
|
D | test_loader.py | 394 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 D | test_assertions.py | 202 for i, expected_regex in enumerate(errors): 210 expected_regex=expected_regex):
|
H A D | test_loader.py | 394 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/ |
D | test_type_comments.py | 231 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 D | log_filter_test.py | 91 expected_regex, argument 99 self.assertEqual(expected_regex, result_text)
|
/aosp_15_r20/external/pytorch/test/ |
H A D | test_utils.py | 895 …expected_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 D | mixed_precision_test.py | 69 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 D | api_integrationtest.py | 145 expected_regex='.*Trace Processor RPC API version:.*'): 293 TraceProcessorException, expected_regex='.*source.*generator.*'):
|
/aosp_15_r20/tools/test/connectivity/acts/framework/tests/ |
D | acts_base_class_test.py | 786 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/ |
D | test_ipaddress.py | 2138 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 D | test_recursive_script.py | 578 expected_regex="can't take variable number of arguments", 594 expected_regex=re.escape(
|
/aosp_15_r20/external/pytorch/test/distributed/fsdp/ |
H A D | test_fsdp_exec_order.py | 159 expected_regex=regex,
|
H A D | test_fsdp_clip_grad_norm.py | 333 expected_regex="on rank "
|
H A D | test_fsdp_misc.py | 136 expected_warning=UserWarning, expected_regex=regex 552 expected_warning=UserWarning, expected_regex=regex
|