(self, s, value, filename, **kw)
| 5518 | os.dup = old_dup |
| 5519 | |
| 5520 | def _check_from(self, s, value, filename, **kw): |
| 5521 | if 'sep' not in kw: |
| 5522 | y = np.frombuffer(s, **kw) |
| 5523 | else: |
| 5524 | y = np.fromstring(s, **kw) |
| 5525 | assert_array_equal(y, value) |
| 5526 | |
| 5527 | with open(filename, 'wb') as f: |
| 5528 | f.write(s) |
| 5529 | y = np.fromfile(filename, **kw) |
| 5530 | assert_array_equal(y, value) |
| 5531 | |
| 5532 | @pytest.fixture(params=["period", "comma"]) |
| 5533 | def decimal_sep_localization(self, request): |
no test coverage detected