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

test_asyncio.test_read_pty_output() fails on "AMD64 Snow Leop 3.x" buildbot #64564

Closed
vstinner opened this issue Jan 23, 2014 · 3 comments
Closed
Labels
tests Tests in the Lib/test dir

Comments

@vstinner
Copy link
Member

BPO 20365
Nosy @gvanrossum, @vstinner

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 2014-01-23.16:29:21.345>
created_at = <Date 2014-01-23.14:33:19.812>
labels = ['tests']
title = 'test_asyncio.test_read_pty_output() fails on "AMD64 Snow Leop 3.x" buildbot'
updated_at = <Date 2014-01-23.16:29:21.296>
user = 'https://github.com/vstinner'

bugs.python.org fields:

activity = <Date 2014-01-23.16:29:21.296>
actor = 'python-dev'
assignee = 'none'
closed = True
closed_date = <Date 2014-01-23.16:29:21.345>
closer = 'python-dev'
components = ['Tests']
creation = <Date 2014-01-23.14:33:19.812>
creator = 'vstinner'
dependencies = []
files = []
hgrepos = []
issue_num = 20365
keywords = ['buildbot']
message_count = 3.0
messages = ['208941', '208965', '208966']
nosy_count = 3.0
nosy_names = ['gvanrossum', 'vstinner', 'python-dev']
pr_nums = []
priority = 'normal'
resolution = 'fixed'
stage = 'resolved'
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue20365'
versions = ['Python 3.4']

@vstinner
Copy link
Member Author

kqueue doesn't support character devices like PTY before Mac OS 10.9. This issue is discussion on Tulip mailing list, no decision was taken yet how to fix this issue.

http://buildbot.python.org/all/builders/AMD64%20Snow%20Leop%203.x/builds/1071/steps/test/logs/stdio

======================================================================
ERROR: test_read_pty_output (test.test_asyncio.test_events.KqueueEventLoopTests)
----------------------------------------------------------------------

Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/asyncio/selector_events.py", line 135, in add_reader
    key = self._selector.get_key(fd)
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/selectors.py", line 181, in get_key
    raise KeyError("{!r} is not registered".format(fileobj)) from None
KeyError: '7 is not registered'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/test/test_asyncio/test_events.py", line 980, in test_read_pty_output
    self.loop.run_until_complete(connect())
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/asyncio/base_events.py", line 177, in run_until_complete
    return future.result()
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/asyncio/futures.py", line 236, in result
    raise self._exception
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/asyncio/tasks.py", line 281, in _step
    result = next(coro)
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/test/test_asyncio/test_events.py", line 974, in connect
    master_read_obj)
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/asyncio/base_events.py", line 537, in connect_read_pipe
    transport = self._make_read_pipe_transport(pipe, protocol, waiter)
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/asyncio/unix_events.py", line 149, in _make_read_pipe_transport
    return _UnixReadPipeTransport(self, pipe, protocol, waiter, extra)
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/asyncio/unix_events.py", line 200, in __init__
    self._loop.add_reader(self._fileno, self._read_ready)
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/asyncio/selector_events.py", line 138, in add_reader
    (handle, None))
  File "/Users/buildbot/buildarea/3.x.murray-snowleopard/build/Lib/selectors.py", line 462, in register
    self._kqueue.control([kev], 0, 0)
OSError: [Errno 22] Invalid argument

@vstinner vstinner added the tests Tests in the Lib/test dir label Jan 23, 2014
@vstinner
Copy link
Member Author

The issue was discussed here:
https://groups.google.com/d/msg/python-tulip/I8oJ65Ww2Zw/tVL2ppXiU54J

The decision is to skip the test on Mac OS X < 10.9.

@python-dev
Copy link
Mannequin

python-dev mannequin commented Jan 23, 2014

New changeset 424564cffad0 by Victor Stinner in branch 'default':
Close bpo-20365: Skip test_asyncio.test_events.test_read_pty_output() on Mac OS X
http://hg.python.org/cpython/rev/424564cffad0

@python-dev python-dev mannequin closed this as completed Jan 23, 2014
@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
tests Tests in the Lib/test dir
Projects
None yet
Development

No branches or pull requests

1 participant