(df, exc, path=None, version=2)
| 131 | |
| 132 | |
| 133 | def _assert_error_on_write(df, exc, path=None, version=2): |
| 134 | # check that we are raising the exception |
| 135 | # on writing |
| 136 | |
| 137 | if path is None: |
| 138 | path = random_path() |
| 139 | |
| 140 | TEST_FILES.append(path) |
| 141 | |
| 142 | def f(): |
| 143 | write_feather(df, path, version=version) |
| 144 | |
| 145 | pytest.raises(exc, f) |
| 146 | |
| 147 | |
| 148 | @pytest.mark.numpy |
no test coverage detected