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 error in test suite with ip.system() #1895

Merged
merged 2 commits into from
Jun 10, 2012

Conversation

takluyver
Copy link
Member

As discussed in #1878. Another case of looking the wrong depth through the stack.

There's still some other problem with the doctesting machinery - a should be turning up in the user namespace in this test, but it isn't. I've tried to understand the code to run doctests before, though, and it gives me a headache.

@takluyver
Copy link
Member Author

Test results for commit 789aae6 merged into master
Platform: linux2

  • python2.7: OK (libraries not available: rpy2 tornado)
  • python3.1: OK (libraries not available: cython matplotlib numpy pymongo qt rpy2 wx wx.aui zmq)
  • python3.2: OK (libraries not available: cython pymongo rpy2 wx wx.aui)

Not available for testing: python2.6

@@ -2210,7 +2210,7 @@ def system_raw(self, cmd):
# use piped system by default, because it is better behaved
system = system_piped

def getoutput(self, cmd, split=True):
def getoutput(self, cmd, split=True, _depth=0):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would expose depth without the underscore and document it publicly, it can come in handy for external users. And since this is an official method anyway, might as well.

@fperez
Copy link
Member

fperez commented Jun 10, 2012

Thanks for this! Other than my minor comment above, this is good to go.

@takluyver
Copy link
Member Author

Test results for commit 34f8b22 merged into master
Platform: linux2

  • python2.7: OK (libraries not available: rpy2 tornado)
  • python3.1: OK (libraries not available: cython matplotlib numpy pymongo qt rpy2 wx wx.aui zmq)
  • python3.2: OK (libraries not available: cython pymongo rpy2 wx wx.aui)

Not available for testing: python2.6

@fperez
Copy link
Member

fperez commented Jun 10, 2012

Sweet, thanks! Merging now...

fperez added a commit that referenced this pull request Jun 10, 2012
Fix error in test suite with ip.system()
@fperez fperez merged commit 610e90f into ipython:master Jun 10, 2012
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

2 participants