(capsys)
| 22 | |
| 23 | |
| 24 | def test_array_compute(capsys): |
| 25 | pytest.importorskip("numpy") |
| 26 | da = pytest.importorskip("dask.array") |
| 27 | |
| 28 | data = da.ones((100, 100), dtype="f4", chunks=(100, 100)) |
| 29 | with ProgressBar(): |
| 30 | out = data.sum().compute() |
| 31 | assert out == 10000 |
| 32 | check_bar_completed(capsys) |
| 33 | |
| 34 | |
| 35 | def test_progressbar(capsys): |
nothing calls this directly
no test coverage detected
searching dependent graphs…