(fd, data)
| 791 | |
| 792 | # Emulate an os.write that only writes partial data. |
| 793 | def write(fd, data): |
| 794 | if self.seen_write and self.never_complete: |
| 795 | return None |
| 796 | self.seen_write = True |
| 797 | return oldwrite(fd, data[:self.truncate_at_length]) |
| 798 | |
| 799 | # Need to patch _io to be _pyio, so that io.FileIO is affected by the |
| 800 | # os.write patch. |
no outgoing calls
no test coverage detected