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

Method test_partition_unicode_kind

numpy/core/tests/test_multiarray.py:3096–3100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3094 assert_equal(d[np.argpartition(d, k)][k], tgt[k])
3095
3096 def test_partition_unicode_kind(self):
3097 d = np.arange(10)
3098 k = b'\xc3\xa4'.decode("UTF8")
3099 assert_raises(ValueError, d.partition, 2, kind=k)
3100 assert_raises(ValueError, d.argpartition, 2, kind=k)
3101
3102 def test_partition_fuzz(self):
3103 # a few rounds of random data testing

Callers

nothing calls this directly

Calls 2

assert_raisesFunction · 0.90
decodeMethod · 0.80

Tested by

no test coverage detected