()
| 2673 | |
| 2674 | |
| 2675 | def test_ducktyping(): |
| 2676 | a = np.random.random((5, 5)) |
| 2677 | |
| 2678 | s = BytesIO() |
| 2679 | f = JustWriter(s) |
| 2680 | |
| 2681 | np.save(f, a) |
| 2682 | f.flush() |
| 2683 | s.seek(0) |
| 2684 | |
| 2685 | f = JustReader(s) |
| 2686 | assert_array_equal(np.load(f), a) |
| 2687 | |
| 2688 | |
| 2689 |
nothing calls this directly
no test coverage detected