(self)
| 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 |
nothing calls this directly
no test coverage detected