MCPcopy Index your code
hub / github.com/python/cpython / test_startswith_endswith_errors

Method test_startswith_endswith_errors

Lib/test/test_str.py:1700–1706  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1698 result = format_string % 2.34
1699
1700 def test_startswith_endswith_errors(self):
1701 for meth in ('foo'.startswith, 'foo'.endswith):
1702 with self.assertRaises(TypeError) as cm:
1703 meth(['f'])
1704 exc = str(cm.exception)
1705 self.assertIn('str', exc)
1706 self.assertIn('tuple', exc)
1707
1708 @support.run_with_locale('LC_ALL', 'de_DE', 'fr_FR', '')
1709 def test_format_float(self):

Callers

nothing calls this directly

Calls 4

methFunction · 0.85
strFunction · 0.85
assertInMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected