• Home
  • Raw
  • Download

Lines Matching refs:assertRaisesRegex

50         with self.assertRaisesRegex(ValueError, msg):
85 with self.assertRaisesRegex(TypeError,
94 with self.assertRaisesRegex(TypeError,
107 with self.assertRaisesRegex(TypeError,
140 with self.assertRaisesRegex(TypeError,
162 with self.assertRaisesRegex(TypeError,
283 with self.assertRaisesRegex(TypeError,
312 with self.assertRaisesRegex(TypeError,
349 with self.assertRaisesRegex(TypeError,
401 with self.assertRaisesRegex(TypeError,
415 with self.assertRaisesRegex(ValueError, 'eq must be true if order is true'):
452 with self.assertRaisesRegex(TypeError,
639 with self.assertRaisesRegex(ValueError,
648 with self.assertRaisesRegex(ValueError,
658 with self.assertRaisesRegex(ValueError,
739 with self.assertRaisesRegex(TypeError, 'unpack'):
827 with self.assertRaisesRegex(TypeError,
836 with self.assertRaisesRegex(TypeError,
849 with self.assertRaisesRegex(TypeError,
858 with self.assertRaisesRegex(TypeError,
1029 with self.assertRaisesRegex(TypeError,
1087 with self.assertRaisesRegex(TypeError,
1280 with self.assertRaisesRegex(AttributeError,
1292 with self.assertRaisesRegex(TypeError,
1344 with self.assertRaisesRegex(TypeError, 'should be called on dataclass instances'):
1346 with self.assertRaisesRegex(TypeError, 'should be called on dataclass instances'):
1348 with self.assertRaisesRegex(TypeError, 'should be called on dataclass instances'):
1364 with self.assertRaisesRegex(TypeError, 'dataclass type or instance'):
1368 with self.assertRaisesRegex(TypeError, 'dataclass type or instance'):
1370 with self.assertRaisesRegex(TypeError, 'dataclass type or instance'):
1394 with self.assertRaisesRegex(TypeError, 'dataclass instance'):
1396 with self.assertRaisesRegex(TypeError, 'dataclass instance'):
1571 with self.assertRaisesRegex(TypeError, 'dataclass instance'):
1573 with self.assertRaisesRegex(TypeError, 'dataclass instance'):
1781 with self.assertRaisesRegex(TypeError,
1804 with self.assertRaisesRegex(TypeError,
1824 with self.assertRaisesRegex(TypeError,
1940 with self.assertRaisesRegex(TypeError,
1951 with self.assertRaisesRegex(TypeError,
1964 with self.assertRaisesRegex(TypeError,
2286 with self.assertRaisesRegex(TypeError,
2295 with self.assertRaisesRegex(TypeError,
2304 with self.assertRaisesRegex(TypeError,
2313 with self.assertRaisesRegex(TypeError,
2373 with self.assertRaisesRegex(TypeError, 'Cannot overwrite attribute __hash__'):
2522 with self.assertRaisesRegex(TypeError, 'unhashable type'):
2585 with self.assertRaisesRegex(TypeError,
2603 with self.assertRaisesRegex(TypeError,
2655 with self.assertRaisesRegex(TypeError,
2663 with self.assertRaisesRegex(TypeError,
2688 with self.assertRaisesRegex(TypeError, 'unhashable type'):
2702 with self.assertRaisesRegex(TypeError,
2713 with self.assertRaisesRegex(AttributeError, "'C' object has no attribute 'y'"):
2890 with self.assertRaisesRegex(AttributeError,
2935 … with self.assertRaisesRegex(AttributeError, f"object has no attribute '{field_name}'"):
3003 with self.assertRaisesRegex(TypeError, 'required positional'):
3050 with self.assertRaisesRegex(TypeError, 'unexpected keyword argument'):
3075 with self.assertRaisesRegex(TypeError, r'Invalid field: '):
3083 with self.assertRaisesRegex(TypeError, r'has no len\(\)'):
3089 with self.assertRaisesRegex(TypeError, 'Field name duplicated'):
3095 with self.assertRaisesRegex(TypeError, 'must not be keywords'):
3097 with self.assertRaisesRegex(TypeError, 'must not be keywords'):
3099 with self.assertRaisesRegex(TypeError, 'must not be keywords'):
3105 with self.assertRaisesRegex(TypeError, 'must be valid identifiers'):
3107 with self.assertRaisesRegex(TypeError, 'must be valid identifiers'):
3109 with self.assertRaisesRegex(TypeError, 'must be valid identifiers'):
3151 with self.assertRaisesRegex(ValueError, 'init=False'):
3153 with self.assertRaisesRegex(ValueError, 'init=False'):
3158 with self.assertRaisesRegex(FrozenInstanceError, "cannot assign to field 'x'"):
3165 with self.assertRaisesRegex(TypeError, r"__init__\(\) got an unexpected "
3176 with self.assertRaisesRegex(TypeError, r"__init__\(\) got an unexpected "
3186 with self.assertRaisesRegex(TypeError, 'dataclass instance'):
3189 with self.assertRaisesRegex(TypeError, 'dataclass instance'):
3206 with self.assertRaisesRegex(ValueError, 'init=False'):
3209 with self.assertRaisesRegex(ValueError, 'init=False'):
3225 with self.assertRaisesRegex(TypeError, r"__init__\(\) got an "
3242 with self.assertRaisesRegex(ValueError, r"InitVar 'y' must be "