(df, exc, path=None, version=2)
| 124 | |
| 125 | |
| 126 | def _assert_error_on_write(df, exc, path=None, version=2): |
| 127 | # check that we are raising the exception |
| 128 | # on writing |
| 129 | |
| 130 | if path is None: |
| 131 | path = random_path() |
| 132 | |
| 133 | TEST_FILES.append(path) |
| 134 | |
| 135 | def f(): |
| 136 | write_feather(df, path, version=version) |
| 137 | |
| 138 | pytest.raises(exc, f) |
| 139 | |
| 140 | |
| 141 | @pytest.mark.numpy |
no test coverage detected