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

Irunner test failure #424

Closed
wants to merge 1 commit into from
Closed

Conversation

jenshnielsen
Copy link
Contributor

When running the iptest I get a failure in test_irunner because the execution of "cos pi"
with autocall off now gives a syntax error and not a EOF error. This pull request fixes it.
However it is unclear why this is changed. For me the change happened when upgrading from
ubuntu10.10 to ubuntu11.04 (python2.6 to python2.). However in plain python shells I
get a syntax error in both 2.6 and 2.7 so I don't know how to properly fix this.

@takluyver
Copy link
Member

N.B. If we merge this, we should close issue #409.

@minrk
Copy link
Member

minrk commented May 10, 2011

Yes, the error message is different in 2.7 and 2.6. Merging this will only make 2.7 pass, and 2.6 will then fail.

@takluyver
Copy link
Member

Wait until most testers are likely to be using 2.7, then merge? Add a decorator to skip it on Python 2.6 and below?

@minrk
Copy link
Member

minrk commented May 10, 2011

It's trivial to allow both error messages, depending on Python version. See #427.

@jenshnielsen
Copy link
Contributor Author

Yes that is properly the right solution. However I wonder why Ipython0.11dev generates the
EOF error using python2.6 when Ipython0.10(python2.6) gives the syntax error and plain 2.6 and 2.7
also results in the syntax error. (I just tested this by running cos pi in various shells.)

minrk added a commit to minrk/ipython that referenced this pull request May 11, 2011
also fix an issue where irunner could send last newline after child exits, raising OSError

closes ipythongh-409
closes ipythongh-424
@takluyver takluyver closed this in f02a1aa May 11, 2011
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 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 this pull request may close these issues.

None yet

3 participants