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

Method test_chararray_rstrip

numpy/core/tests/test_regression.py:377–382  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

375 assert_raises(IndexError, index_tmp)
376
377 def test_chararray_rstrip(self):
378 # Ticket #222
379 x = np.chararray((1,), 5)
380 x[0] = b'a '
381 x = x.rstrip()
382 assert_equal(x[0], b'a')
383
384 def test_object_array_shape(self):
385 # Ticket #239

Callers

nothing calls this directly

Calls 2

assert_equalFunction · 0.90
rstripMethod · 0.80

Tested by

no test coverage detected