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

Method test_unicode_mode

numpy/core/tests/test_item_selection.py:67–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

65 assert_(all(sys.getrefcount(o) == 3 for o in objects))
66
67 def test_unicode_mode(self):
68 d = np.arange(10)
69 k = b'\xc3\xa4'.decode("UTF8")
70 assert_raises(ValueError, d.take, 5, mode=k)
71
72 def test_empty_partition(self):
73 # 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