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

Test failure in IPython.core.tests.test_magic.test_time #2899

Closed
takluyver opened this issue Feb 8, 2013 · 0 comments · Fixed by #2900
Closed

Test failure in IPython.core.tests.test_magic.test_time #2899

takluyver opened this issue Feb 8, 2013 · 0 comments · Fixed by #2900
Labels
Milestone

Comments

@takluyver
Copy link
Member

With the new output formatting from %time added in #2855, the test case no longer shows up as taking no time at all on Windows.

======================================================================
FAIL: IPython.core.tests.test_magic.test_time
----------------------------------------------------------------------
Traceback (most recent call last):
  File "S:\Users\slave\Jenkins\shiningpanda\jobs\d5f643a2\virtualenvs\ff035a1d\lib\site-packages\nose\case.py", line 197, in runTest
    self.test(*self.arg)
  File "S:\Users\slave\Jenkins\shiningpanda\jobs\d5f643a2\virtualenvs\ff035a1d\lib\site-packages\ipython-0.14.dev-py2.7.egg\IPython\core\tests\test_magic.py", line 287, in test_time
    ip.run_cell("%time None")
  File "S:\Users\slave\Jenkins\shiningpanda\jobs\d5f643a2\virtualenvs\ff035a1d\lib\site-packages\ipython-0.14.dev-py2.7.egg\IPython\testing\tools.py", line 342, in __exit__
    assert self.s in printed, notprinted_msg.format(self.s, self.channel, printed)
AssertionError: Did not find 'CPU times: user 0 ns, sys: 0 ns, total: 0 ns' in printed output (on stdout):
-------
CPU times: user 6.15 us, sys: 0 ns, total: 6.15 us
Wall time: 0 ns

-------

https://jenkins.shiningpanda-ci.com/ipython/job/ipython-win-py27/39/console

Carreau added a commit that referenced this issue Feb 8, 2013
Don't assume test case for %time will finish in 0 time

Closes gh-2899
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this issue Nov 3, 2014
Don't assume test case for %time will finish in 0 time

Closes ipythongh-2899
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant