Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use pathlib.Path instead of os.path.join in test_interactiveshell.py #13769

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

GideonBear
Copy link

For #12515
This is my first ever pull request, please tell me if I did anything wrong

with open(
join(self.TESTDIR, "åäötestscript.py"), "w", encoding="utf-8"
) as sfile:
with open(self.TESTDIR / "åäötestscript.py", "w", encoding="utf-8") as sfile:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Path objects have a method for writing text: path.write_text("text", encoding="utf-8")

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're right, didn't even think of that. I don't know what causes the FileNotFoundError though

@GideonBear
Copy link
Author

No idea why only windows-latest pypy-3.8 fails with a FileNotFoundError

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.

None yet

2 participants