MCPcopy Create free account
hub / github.com/numpy/numpy / fail

Method fail

numpy/core/tests/test_defchararray.py:235–236  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

233 assert_array_equal(self.A.endswith('3', 0, 3), [[0, 0], [1, 0], [1, 0]])
234
235 def fail():
236 self.A.endswith('3', 'fdjk')
237
238 assert_raises(TypeError, fail)
239

Callers

nothing calls this directly

Calls 4

endswithMethod · 0.80
rindexMethod · 0.80
startswithMethod · 0.80
indexMethod · 0.45

Tested by

no test coverage detected