Reopen ``h5file`` in the specified ``mode``. Returns a true or false value depending on whether the file was reopenend or not. If not, nothing is changed.
(self, mode="r", **kwargs)
| 342 | super().tearDown() |
| 343 | |
| 344 | def _reopen(self, mode="r", **kwargs): |
| 345 | """Reopen ``h5file`` in the specified ``mode``. |
| 346 | |
| 347 | Returns a true or false value depending on whether the file was |
| 348 | reopenend or not. If not, nothing is changed. |
| 349 | |
| 350 | """ |
| 351 | |
| 352 | self.h5file.close() |
| 353 | self.h5file = tb.open_file(self.h5fname, mode, **kwargs) |
| 354 | return True |
| 355 | |
| 356 | |
| 357 | class ShowMemTime(PyTablesTestCase): |