Skip to content

Fix for unicode in test Any file headers#140

Merged
melund merged 4 commits intomasterfrom
JDT2026-02-fix_unicode_header
Feb 17, 2026
Merged

Fix for unicode in test Any file headers#140
melund merged 4 commits intomasterfrom
JDT2026-02-fix_unicode_header

Conversation

@JDThomsen
Copy link
Collaborator

This pull request makes small improvements to file handling in anypytools/pytest_plugin.py by explicitly specifying UTF-8 encoding when reading and writing files. This helps ensure consistent behavior across different environments and avoids encoding-related issues.

  • File reading improvements:

    • Updated the _read_header function to open files with encoding='utf8' for consistent text decoding.
  • File writing improvements:

    • Updated the _write_macro_file function to open files with encoding='utf8' for consistent text encoding.

@JDThomsen JDThomsen requested a review from melund February 17, 2026 14:15
@melund melund force-pushed the JDT2026-02-fix_unicode_header branch from 24c4189 to 3de46aa Compare February 17, 2026 18:27
@melund
Copy link
Member

melund commented Feb 17, 2026

I just fixed one extra instance where utf8 specification was missing. Also added an changelog entry and bumped the version for a release.

@melund melund merged commit f095b88 into master Feb 17, 2026
8 checks passed
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