Home
last modified time | relevance | path

Searched refs:raises (Results 1 – 10 of 10) sorted by relevance

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_pep292.py81 raises = self.assertRaises
83 raises(ValueError, s.substitute, dict(who='tim'))
85 raises(ValueError, s.substitute, dict(who='tim'))
87 raises(ValueError, s.substitute, dict(who='tim'))
149 raises = self.assertRaises
162 raises(TypeError, s.substitute, d, {})
163 raises(TypeError, s.safe_substitute, d, {})
167 raises = self.assertRaises
172 raises(KeyError, s.substitute)
176 raises(ValueError, s.substitute, dict(gift='bud', who='you'))
Dtest_gettext.py290 raises = self.assertRaises
292 raises(ValueError, gettext.c2py, "os.chmod('/etc/passwd',0777)")
Dtest_sys_settrace.py95 def raises(): function
100 raises()
Dtest_argparse.py237 raises = tester.assertRaises
238 raises(ArgumentParserError, parser.parse_args, args)
2192 raises = self.assertRaises
2193 raises(TypeError, parser.add_mutually_exclusive_group, title='foo')
2199 raises = self.assertRaises
2200 raises(ValueError, add_argument, '--foo', required=True)
2201 raises(ValueError, add_argument, 'bar')
2202 raises(ValueError, add_argument, 'bar', nargs='+')
2203 raises(ValueError, add_argument, 'bar', nargs=1)
2204 raises(ValueError, add_argument, 'bar', nargs=argparse.PARSER)
Dtest_descr.py896 def raises(exc, expected, callable, *args): function
913 raises(TypeError, "duplicate base class A",
915 raises(TypeError, mro_err_msg,
917 raises(TypeError, mro_err_msg,
925 raises(TypeError, mro_err_msg,
Dcmath_testcases.txt2239 -- rect(x, inf) returns NaN + i NaN and raises the "invalid"
2241 -- rect(inf, inf) returns +-inf + i NaN and raises the "invalid"
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/test/
Dtest_email_renamed.py1072 raises = self.assertRaises
1078 raises(IndexError, m.get_payload, 2)
2930 raises = self.assertRaises
2933 raises(UnicodeError, Header, x)
2935 raises(UnicodeError, h.append, x)
2960 raises = self.assertRaises
2962 raises(errors.HeaderParseError, decode_header, s)
Dtest_email.py1143 raises = self.assertRaises
1149 raises(IndexError, m.get_payload, 2)
3104 raises = self.assertRaises
3107 raises(UnicodeError, Header, x)
3109 raises(UnicodeError, h.append, x)
3134 raises = self.assertRaises
3136 raises(Errors.HeaderParseError, decode_header, s)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Objects/
Dlistsort.txt391 proceed by induction). The only tricky bit is that if a comparison raises an
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Objects/
Dlistsort.txt394 proceed by induction). The only tricky bit is that if a comparison raises an