Searched refs:TypeError (Results 1 - 25 of 34) sorted by relevance

12

/openbsd-current/gnu/usr.bin/perl/t/mro/
H A Dinconsistent_c3.t30 except TypeError:
H A Dinconsistent_c3_utf8.t33 except TypeError:
/openbsd-current/gnu/llvm/lldb/third_party/Python/module/unittest2/unittest2/
H A Dsuite.py44 raise TypeError("%r is not callable" % (repr(test),))
47 raise TypeError("TestCases and TestSuites must be instantiated "
53 raise TypeError("tests must be an iterable of tests, not a string")
132 except TypeError:
277 except TypeError:
H A Dcase.py608 raise TypeError("specify delta or places not both")
648 raise TypeError("specify delta or places not both")
727 except (TypeError, NotImplementedError):
734 except (TypeError, NotImplementedError):
754 except (TypeError, IndexError, NotImplementedError):
761 except (TypeError, IndexError, NotImplementedError):
782 except (TypeError, IndexError, NotImplementedError):
791 except (TypeError, IndexError, NotImplementedError):
847 except TypeError as e:
854 except TypeError a
[all...]
H A Dloader.py65 raise TypeError("Test cases should not be derived from TestSuite."
133 raise TypeError("calling %s returned %s, not a test" %
136 raise TypeError("don't know how to make test from: %s" % obj)
H A Dmain.py242 except TypeError:
/openbsd-current/gnu/llvm/lldb/third_party/Python/module/unittest2/unittest2/test/
H A Dtest_suite.py189 except TypeError:
192 self.fail("Failed to raise TypeError")
286 except TypeError:
289 self.fail("Failed to raise TypeError")
293 self.assertRaises(TypeError, suite.addTest, 5)
297 self.assertRaises(TypeError, suite.addTest, Test_TestSuite)
298 self.assertRaises(TypeError, suite.addTest, unittest2.TestSuite)
302 self.assertRaises(TypeError, suite.addTests, "foo")
H A Dtest_unittest2_with.py104 raise TypeError
145 self.failUnlessRaises(TypeError, lambda _: 3.14 + u'spam')
H A Dtest_setups.py114 raise TypeError('foo')
137 raise TypeError('foo')
151 raise TypeError('foo')
175 raise TypeError
180 raise TypeError('foo')
339 raise TypeError('foo')
428 raise TypeError('foo')
H A Dtest_assertions.py49 self.assertRaises(TypeError, self.assertAlmostEqual,
51 self.assertRaises(TypeError, self.assertNotAlmostEqual,
H A Dtest_loader.py58 except TypeError:
61 self.fail('Should raise TypeError')
140 # raise a TypeError
190 raise TypeError('some failure')
199 self.assertRaisesRegexp(TypeError, "some failure", test.m)
338 # Does loadTestsFromName raise TypeError when the `module` argument
374 except TypeError:
377 self.fail("Should have raised TypeError")
547 except TypeError:
550 self.fail("TestLoader.loadTestsFromName failed to raise TypeError")
[all...]
H A Dtest_program.py110 raise TypeError
H A Dtest_result.py214 raise TypeError()
/openbsd-current/gnu/llvm/lldb/third_party/Python/module/pexpect-4.6/pexpect/
H A Dspawnbase.py183 raise TypeError('got {badtype} ({badobj!r}) as pattern, must be one'
337 raise TypeError("Unknown keyword arguments: {}".format(kw))
362 raise TypeError("Unknown keyword arguments: {}".format(kw))
394 raise TypeError("Unknown keyword arguments: {}".format(kw))
409 except TypeError:
H A Drun.py133 raise TypeError("parameter `event' at index {index} must be "
H A Dscreen.py83 bytes in will raise :exc:`TypeError`.
110 raise TypeError("This screen was constructed with encoding=None, "
H A Dpty_spawn.py262 raise TypeError('The argument, args, must be a list.')
/openbsd-current/gnu/llvm/llvm/utils/lit/lit/
H A DTest.py111 except TypeError:
175 raise TypeError("unexpected metric value: %r" % (value,))
192 raise TypeError("unexpected MicroResult value %r" % (microResult,))
H A Dutil.py95 raise TypeError('not sure how to convert %s to %s' % (type(b), str))
/openbsd-current/gnu/llvm/lldb/examples/python/
H A Dsbvalue.py46 raise TypeError
120 raise TypeError
/openbsd-current/gnu/llvm/lldb/bindings/interface/
H A DSBSymbolContextList.i82 raise TypeError
H A DSBData.i161 raise TypeError('must be int')
/openbsd-current/gnu/llvm/llvm/bindings/python/llvm/tests/
H A Dtest_core.py53 with self.assertRaises(TypeError):
/openbsd-current/gnu/llvm/clang/include/clang/Sema/
H A DOwnership.h280 inline TypeResult TypeError() { return TypeResult(true); } function in namespace:clang
/openbsd-current/gnu/llvm/clang/bindings/python/tests/cindex/
H A Dtest_type.py215 """Ensure that non-int keys raise a TypeError."""
223 with self.assertRaises(TypeError):

Completed in 300 milliseconds

12