Skip to content

Conversation

@AnnieL01
Copy link

@AnnieL01 AnnieL01 commented Jan 6, 2025

Extend pike test to cover lone surrogate in filename.
Step 1: Create file with write/read, no delete on close
Step 2: Query file info
Step 3: Opening file with DELETE_ON_CLOSE
Step 4: Verifying file deletion

Current Implementation:
This version uses print statements to track the workflow's status at each step. Since Python's print function can raise errors when handling special surrogate characters, io.TextIOWrapper has been added to resolve this issue.
Logging Usage:
To enable log printing, use pytest -s. By default, the log-related code is commented out, and -s is not applied.

@isi-adas isi-adas self-requested a review January 6, 2025 17:41
@isi-adas
Copy link
Collaborator

isi-adas commented Jan 6, 2025

cc: @isi-rszczesniak

@isi-adas
Copy link
Collaborator

LGTM as a POC.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants