(self)
| 146 | out = ''.join([repr(t) + '\n' for t in tgt]) |
| 147 | |
| 148 | def test_fromfile_bogus(self): |
| 149 | with temppath() as path: |
| 150 | with open(path, 'w') as f: |
| 151 | f.write("1. 2. 3. flop 4.\n") |
| 152 | |
| 153 | with assert_warns(DeprecationWarning): |
| 154 | res = np.fromfile(path, dtype=float, sep=" ") |
| 155 | assert_equal(res, np.array([1., 2., 3.])) |
| 156 | |
| 157 | def test_fromfile_complex(self): |
| 158 | for ctype in ["complex", "cdouble", "cfloat"]: |
nothing calls this directly
no test coverage detected