IronLanguages / IronLanguages/ironpython3
os.mkdir(support.TESTFN_UNDECODABLE) fails on Mono
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 2.8k
- Forks
- 316
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 1
Description
For example, the following fails on Mono Linux:
os.mkdir(b'@test_16742_tmp\xe7w\xf0')
with the following error:
ValueError: Illegal byte sequence encounted in the input.
This causes failures in test_genericpath.test_nonascii_abspath which is run by test_macpath, test_ntpath, test_posixpath.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the os.mkdir call with the undecodable byte path on Mono Linux, then run test_genericpath.test_nonascii_abspath through test_macpath, test_ntpath, and test_posixpath. Trace the filesystem path handling involved in the ValueError; done means the call succeeds and those tests pass without the illegal-byte-sequence failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, linux, python
- Domain
- operating-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100