()
| 1294 | assert po['precision'] == 12 |
| 1295 | |
| 1296 | async def legacy_125(): |
| 1297 | np.set_printoptions(legacy='1.25', precision=7) |
| 1298 | await b.wait() |
| 1299 | po = np.get_printoptions() |
| 1300 | assert po['legacy'] == '1.25' |
| 1301 | assert po['precision'] == 7 |
| 1302 | orig_linewidth = po['linewidth'] |
| 1303 | with np.printoptions(linewidth=6, legacy='1.13'): |
| 1304 | po = np.get_printoptions() |
| 1305 | assert po['legacy'] == '1.13' |
| 1306 | assert po['precision'] == 7 |
| 1307 | assert po['linewidth'] == 6 |
| 1308 | po = np.get_printoptions() |
| 1309 | assert po['linewidth'] == orig_linewidth |
| 1310 | assert po['legacy'] == '1.25' |
| 1311 | assert po['precision'] == 7 |
| 1312 | |
| 1313 | async def main(): |
| 1314 | await asyncio.gather(legacy_125(), legacy_125()) |
no outgoing calls
no test coverage detected
searching dependent graphs…