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