MCPcopy Index your code
hub / github.com/numpy/numpy / test_unicode_mode

Method test_unicode_mode

numpy/_core/tests/test_item_selection.py:69–72  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

67 for o, rc in zip(objects, orig_rcs)))
68
69 def test_unicode_mode(self):
70 d = np.arange(10)
71 k = b'\xc3\xa4'.decode("UTF8")
72 assert_raises(ValueError, d.take, 5, mode=k)
73
74 def test_empty_partition(self):
75 # In reference to github issue #6530

Callers

nothing calls this directly

Calls 2

assert_raisesFunction · 0.90
decodeMethod · 0.80

Tested by

no test coverage detected