(self)
| 79 | file.write('x (\n') |
| 80 | |
| 81 | def timestamp_metadata(self): |
| 82 | with open(self.bc_path, 'rb') as file: |
| 83 | data = file.read(12) |
| 84 | mtime = int(os.stat(self.source_path).st_mtime) |
| 85 | compare = struct.pack('<4sLL', importlib.util.MAGIC_NUMBER, 0, |
| 86 | mtime & 0xFFFF_FFFF) |
| 87 | return data, compare |
| 88 | |
| 89 | def test_year_2038_mtime_compilation(self): |
| 90 | # Test to make sure we can handle mtimes larger than what a 32-bit |
no test coverage detected