Data integrity during recovery (non-contiguous character objects)
(self)
| 374 | Path(filename).unlink() |
| 375 | |
| 376 | def setup01_char_nc(self): |
| 377 | """Data integrity during recovery (non-contiguous character objects)""" |
| 378 | |
| 379 | if not isinstance(self.tupleChar, np.ndarray): |
| 380 | a = np.array(self.tupleChar, dtype="S") |
| 381 | else: |
| 382 | a = self.tupleChar |
| 383 | if a.ndim == 0: |
| 384 | b = a.copy() |
| 385 | else: |
| 386 | b = a[::2] |
| 387 | # Ensure that this numpy string is non-contiguous |
| 388 | if len(b) > 1: |
| 389 | self.assertEqual(b.flags.contiguous, False) |
| 390 | return b |
| 391 | |
| 392 | def test01_char_nc(self): |
| 393 | b = self.setup01_char_nc() |
no test coverage detected