Return bytes of file at path formed by adding `segments` to test file dir.
(*segments: str)
| 51 | |
| 52 | |
| 53 | def testfile_bytes(*segments: str): |
| 54 | """Return bytes of file at path formed by adding `segments` to test file dir.""" |
| 55 | path = os.path.join(test_file_dir, *segments) |
| 56 | with open(path, "rb") as f: |
| 57 | return f.read() |
searching dependent graphs…