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

testris always times out under python3 on windows #20

Closed
tangentstorm opened this issue Apr 9, 2014 · 2 comments · Fixed by #23
Closed

testris always times out under python3 on windows #20

tangentstorm opened this issue Apr 9, 2014 · 2 comments · Fixed by #23

Comments

@tangentstorm
Copy link
Contributor

On windows, running under git bash:

/c/Python33/python testris.py /c/Python33/python learntris.py just times out, even though /c/Python33/python learntris.py runs correctly.

The given learntris.py implementation is:

import sys
sys.stdin.readline()

(Which should pass the first test.) The --shell option makes no difference.

All variations work fine under python 2.7.6:

/c/Python27/python2 testris.py --shell /c/Python33/python learntris.py
/c/Python27/python2 testris.py --shell /c/Python27/python2 learntris.py
/c/Python27/python2 testris.py  /c/Python33/python.exe learntris.py
/c/Python27/python2 testris.py  /c/Python27/python2.exe learntris.py
@tangentstorm
Copy link
Contributor Author

Interestingly, the following learntris.py implementation does not lead to a timeout:

pass

Since the timeout occured when sys.readline() was invoked, this may indicate an issue with the way python 3 is sending line endings.

@raylu
Copy link
Contributor

raylu commented Apr 30, 2014

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

Successfully merging a pull request may close this issue.

2 participants