()
| 60 | |
| 61 | |
| 62 | def test_two_gets(): |
| 63 | with prof: |
| 64 | get(dsk, "e") |
| 65 | n = len(prof.results) |
| 66 | |
| 67 | dsk2 = {"x": (add, 1, 2), "y": (add, "x", "x")} |
| 68 | |
| 69 | with prof: |
| 70 | get(dsk2, "y") |
| 71 | m = len(prof.results) |
| 72 | |
| 73 | with prof: |
| 74 | get(dsk, "e") |
| 75 | get(dsk2, "y") |
| 76 | get(dsk, "e") |
| 77 | |
| 78 | assert len(prof.results) == n + m + n |
| 79 | |
| 80 | |
| 81 | @pytest.mark.skipif("not psutil") |