Dump objects to stdout so that they can be inspected by the test suite.
(*objects: Any)
| 57 | |
| 58 | |
| 59 | def dump_obj(*objects: Any) -> None: |
| 60 | """Dump objects to stdout so that they can be inspected by the test suite.""" |
| 61 | for obj in objects: |
| 62 | dump = pickle.dumps(obj, protocol=pickle.HIGHEST_PROTOCOL) |
| 63 | encoded = base64.b64encode(dump).decode("ascii") |
| 64 | print(f"{_DUMP_START}{encoded}{_DUMP_END}") |
| 65 | |
| 66 | |
| 67 | def collect_dumped_objects(result: RunResult) -> list: |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…