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

Method test_partition_unicode_kind

numpy/_core/tests/test_multiarray.py:3690–3694  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

3688 assert_equal(d[np.argpartition(d, k)][k], tgt[k])
3689
3690 def test_partition_unicode_kind(self):
3691 d = np.arange(10)
3692 k = b'\xc3\xa4'.decode("UTF8")
3693 assert_raises(ValueError, d.partition, 2, kind=k)
3694 assert_raises(ValueError, d.argpartition, 2, kind=k)
3695
3696 def test_partition_fuzz(self):
3697 # 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