(localfs)
| 1152 | |
| 1153 | |
| 1154 | def test_localfs_errors(localfs): |
| 1155 | # Local filesystem errors should raise the right Python exceptions |
| 1156 | # (e.g. FileNotFoundError) |
| 1157 | fs = localfs['fs'] |
| 1158 | with assert_file_not_found(): |
| 1159 | fs.open_input_stream('/non/existent/file') |
| 1160 | with assert_file_not_found(): |
| 1161 | fs.open_output_stream('/non/existent/file') |
| 1162 | with assert_file_not_found(): |
| 1163 | fs.create_dir('/non/existent/dir', recursive=False) |
| 1164 | with assert_file_not_found(): |
| 1165 | fs.delete_dir('/non/existent/dir') |
| 1166 | with assert_file_not_found(): |
| 1167 | fs.delete_file('/non/existent/dir') |
| 1168 | with assert_file_not_found(): |
| 1169 | fs.move('/non/existent', '/xxx') |
| 1170 | with assert_file_not_found(): |
| 1171 | fs.copy_file('/non/existent', '/xxx') |
| 1172 | |
| 1173 | |
| 1174 | def test_localfs_file_info(localfs): |
nothing calls this directly
no test coverage detected