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

'TestInputSocket' fails on MacOS #24

Closed
WillemEerland opened this issue May 10, 2018 · 4 comments
Closed

'TestInputSocket' fails on MacOS #24

WillemEerland opened this issue May 10, 2018 · 4 comments

Comments

@WillemEerland
Copy link
Contributor

@bcoconni Opening a new issue as requested. More information following when I have access to MacOS.

OK thanks for the report. It seems that TestInputSocket fails for a reason different from a race condition on your system. Could you open a separate issue to address this topic ?

And in the meantime could you please check that the following lines of Python code raise a socket.error exception on your platform as well ?

import telnetlib
telnetlib.Telnet("localhost", 1137, 2.0)

@bcoconni
Copy link
Member

OK thanks. Please make sure to test the last code from the branch master since a potential fix has been introduced for this issue since the merge of PR #23 (using port 2222 instead of 1137)

@WillemEerland
Copy link
Contributor Author

Test still fails

Start 10: TestInputSocket
10/35 Test #10: TestInputSocket ..................***Exception: SegFault 5.63 sec

telnetlib.Telnet("localhost",2222,2.0)

Traceback (most recent call last):
File "", line 1, in
File "/Users/will/anaconda/lib/python3.5/telnetlib.py", line 218, in init
self.open(host, port, timeout)
File "/Users/will/anaconda/lib/python3.5/telnetlib.py", line 234, in open
self.sock = socket.create_connection((host, port), timeout)
File "/Users/will/anaconda/lib/python3.5/socket.py", line 711, in create_connection
raise err
File "/Users/will/anaconda/lib/python3.5/socket.py", line 702, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 61] Connection refused

FYI, they removed telnet from MacOS (apparently, it took up too much space) -- Could this be the issue?

@WillemEerland
Copy link
Contributor Author

Test passes - my bad!

Start 10: TestInputSocket
1/1 Test #10: TestInputSocket .................. Passed 3.34 sec

100% tests passed, 0 tests failed out of 1

@ezietsman
Copy link
Contributor

you need to install it yes, brew install telnet

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

No branches or pull requests

3 participants