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

fix tb_offset when running a file #4858

Merged
merged 3 commits into from Jan 24, 2014
Merged

Conversation

minrk
Copy link
Member

@minrk minrk commented Jan 24, 2014

either with %run or via ipython script.py

since we wrap execfile, the tb_offset needs to be 2 instead of the default (1).

closes #4835

about not overriding execfile on 2.x
because we do override it
either with %run or via `ipython script.py`

since we wrap execfile, the tb_offset needs to be 2 instead of the default (1).

closes ipython#4835
@takluyver
Copy link
Member

Do you think it's worth adding a test? I can only think it would be a hackish text-munging type of test, but this is the sort of thing that's liable to break again.

@minrk
Copy link
Member Author

minrk commented Jan 24, 2014

I would love to add a test, but one didn't stand out to me. I'll try to work one out.

@minrk
Copy link
Member Author

minrk commented Jan 24, 2014

tests added

@takluyver
Copy link
Member

And passing. Merging.

takluyver added a commit that referenced this pull request Jan 24, 2014
fix tb_offset when running a file
@takluyver takluyver merged commit f6e2598 into ipython:master Jan 24, 2014
@minrk minrk deleted the execfile-offset branch March 31, 2014 23:36
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.

running ipython on python files adds an extra traceback frame
2 participants