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

tiger buildbot: test_abspath_issue3426 failure (test_genericpath.py) #52669

Closed
vstinner opened this issue Apr 16, 2010 · 5 comments
Closed

tiger buildbot: test_abspath_issue3426 failure (test_genericpath.py) #52669

vstinner opened this issue Apr 16, 2010 · 5 comments
Labels
stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@vstinner
Copy link
Member

BPO 8422
Nosy @vstinner, @florentx

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = None
closed_at = <Date 2010-05-13.16:26:12.306>
created_at = <Date 2010-04-16.16:31:05.191>
labels = ['tests', 'library', 'type-crash']
title = 'tiger buildbot: test_abspath_issue3426 failure (test_genericpath.py)'
updated_at = <Date 2010-05-13.16:26:12.304>
user = 'https://github.com/vstinner'

bugs.python.org fields:

activity = <Date 2010-05-13.16:26:12.304>
actor = 'vstinner'
assignee = 'none'
closed = True
closed_date = <Date 2010-05-13.16:26:12.306>
closer = 'vstinner'
components = ['Library (Lib)', 'Tests']
creation = <Date 2010-04-16.16:31:05.191>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 8422
keywords = ['buildbot']
message_count = 5.0
messages = ['103338', '103468', '103471', '105632', '105642']
nosy_count = 2.0
nosy_names = ['vstinner', 'flox']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'commit review'
status = 'closed'
superseder = None
type = 'crash'
url = 'https://bugs.python.org/issue8422'
versions = ['Python 2.7']

@vstinner
Copy link
Member Author

http://www.python.org/dev/buildbot/3.x/builders/x86 Tiger 3.x/builds/6/steps/test/logs/stdio

test test_ntpath failed -- Traceback (most recent call last):
  File "/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/test/test_genericpath.py", line 288, in test_abspath_issue3426
    with support.temp_cwd(b'\xe7w\xf0'):
  File "/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/contextlib.py", line 17, in __enter__
    return next(self.gen)
  File "/Users/db3l/buildarea/3.x.bolen-tiger/build/Lib/test/support.py", line 392, in temp_cwd
    os.mkdir(name)
OSError: [Errno 22] Invalid argument

As discussed on IRC: Mac OS X deny the creation of a directory with an invalid utf8 name. The test should be skipped on Mac OS X (sys.platform == 'darwin').

@vstinner vstinner added the stdlib Python modules in the Lib dir label Apr 16, 2010
@vstinner
Copy link
Member Author

See also bpo-8423.

@vstinner
Copy link
Member Author

Fixed by r80163: move the test to a new function and skip the function on Mac.

@florentx
Copy link
Mannequin

florentx mannequin commented May 13, 2010

afaict, it needs backport to 2.7.

@florentx florentx mannequin added the tests Tests in the Lib/test dir label May 13, 2010
@florentx florentx mannequin reopened this May 13, 2010
@florentx florentx mannequin added the type-crash A hard crash of the interpreter, possibly with a core dump label May 13, 2010
@vstinner
Copy link
Member Author

afaict, it needs backport to 2.7.

Right: r81135 (and r81137).

Blocked on 2.6 (it doesn't have the non-ASCII path test): r81139.

@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-crash A hard crash of the interpreter, possibly with a core dump
Projects
None yet
Development

No branches or pull requests

1 participant