IronLanguages / IronLanguages/ironpython3

os.mkdir(support.TESTFN_UNDECODABLE) fails on Mono

Open
#1,102 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

linux module-os Mono
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.