Skip to content

Instantly share code, notes, and snippets.

@takluyver
Created May 23, 2012 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save takluyver/2774385 to your computer and use it in GitHub Desktop.
Save takluyver/2774385 to your computer and use it in GitHub Desktop.
IPython test log
..............................................
----------------------------------------------------------------------
Ran 46 tests in 0.078s
OK
...................................................................................................................................................................................................S..................................................................................K.........
----------------------------------------------------------------------
Ran 288 tests in 11.839s
OK (KNOWNFAIL=1, SKIP=1)
...........
----------------------------------------------------------------------
Ran 11 tests in 6.417s
OK
.............Got bus address: "unix:abstract=/tmp/dbus-oPB39uzdRF,guid=2a87adf084edd825a2c0f2d500000028"
Connected to accessibility bus at: "unix:abstract=/tmp/dbus-oPB39uzdRF,guid=2a87adf084edd825a2c0f2d500000028"
Registered DEC: true
................
----------------------------------------------------------------------
Ran 29 tests in 4.564s
OK
................FF......
======================================================================
FAIL: Verify that plot is not available when pylab_import_all = False
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/thomas/.ipy_pr_tests/venv-python3.2/lib/python3.2/site-packages/ipython-0.13.dev-py3.2.egg/IPython/testing/decorators.py", line 229, in skipper_func
return f(*args, **kwargs)
File "/home/thomas/.ipy_pr_tests/venv-python3.2/lib/python3.2/site-packages/ipython-0.13.dev-py3.2.egg/IPython/testing/decorators.py", line 229, in skipper_func
return f(*args, **kwargs)
File "/home/thomas/.ipy_pr_tests/venv-python3.2/lib/python3.2/site-packages/ipython-0.13.dev-py3.2.egg/IPython/lib/tests/test_irunner_pylab_magic.py", line 118, in test_pylab_import_all_disabled
self._test_runner(runner,source,output)
File "/home/thomas/.ipy_pr_tests/venv-python3.2/lib/python3.2/site-packages/ipython-0.13.dev-py3.2.egg/IPython/lib/tests/test_irunner_pylab_magic.py", line 53, in _test_runner
self.fail(message)
AssertionError: Mismatch in number of lines
Expected:
~~~~~~~~~
In \[1\]: from IPython\.config\.application import Application
In \[2\]: app = Application\.instance\(\)
In \[3\]: app\.pylab_import_all = False
In \[4\]: pylab
^Welcome to pylab, a matplotlib-based Python environment
For more information, type 'help\(pylab\)'\.
In \[5\]: ip=get_ipython\(\)
In \[6\]: 'plot' in ip\.user_ns
Out\[6\]: False
Got:
~~~~~~~~~
In [1]: from IPython.config.application import Application
In [2]: app = Application.instance()
In [3]: app.pylab_import_all = False
In [4]: pylab
/usr/local/lib/python3.2/dist-packages/matplotlib/__init__.py:931: UserWarning: This call to matplotlib.use() has no effect
because the the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
if warn: warnings.warn(_use_error_msg)
Welcome to pylab, a matplotlib-based Python environment [backend: Qt4Agg].
For more information, type 'help(pylab)'.
In [5]: ip=get_ipython()
In [6]: 'plot' in ip.user_ns
Out[6]: False
"""Fail immediately, with the given message."""
>> raise self.failureException("Mismatch in number of lines\n\nExpected:\n~~~~~~~~~\nIn \\[1\\]: from IPython\\.config\\.application import Application\nIn \\[2\\]: app = Application\\.instance\\(\\)\nIn \\[3\\]: app\\.pylab_import_all = False\nIn \\[4\\]: pylab\n^Welcome to pylab, a matplotlib-based Python environment\nFor more information, type 'help\\(pylab\\)'\\.\nIn \\[5\\]: ip=get_ipython\\(\\)\nIn \\[6\\]: 'plot' in ip\\.user_ns\nOut\\[6\\]: False\n\nGot:\n~~~~~~~~~\nIn [1]: from IPython.config.application import Application\nIn [2]: app = Application.instance()\nIn [3]: app.pylab_import_all = False\nIn [4]: pylab\n/usr/local/lib/python3.2/dist-packages/matplotlib/__init__.py:931: UserWarning: This call to matplotlib.use() has no effect\nbecause the the backend has already been chosen;\nmatplotlib.use() must be called *before* pylab, matplotlib.pyplot,\nor matplotlib.backends is imported for the first time.\n if warn: warnings.warn(_use_error_msg)\nWelcome to pylab, a matplotlib-based Python environment [backend: Qt4Agg].\nFor more information, type 'help(pylab)'.\nIn [5]: ip=get_ipython()\nIn [6]: 'plot' in ip.user_ns\nOut[6]: False")
======================================================================
FAIL: Verify that plot is available when pylab_import_all = True
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/thomas/.ipy_pr_tests/venv-python3.2/lib/python3.2/site-packages/ipython-0.13.dev-py3.2.egg/IPython/testing/decorators.py", line 229, in skipper_func
return f(*args, **kwargs)
File "/home/thomas/.ipy_pr_tests/venv-python3.2/lib/python3.2/site-packages/ipython-0.13.dev-py3.2.egg/IPython/testing/decorators.py", line 229, in skipper_func
return f(*args, **kwargs)
File "/home/thomas/.ipy_pr_tests/venv-python3.2/lib/python3.2/site-packages/ipython-0.13.dev-py3.2.egg/IPython/lib/tests/test_irunner_pylab_magic.py", line 92, in test_pylab_import_all_enabled
self._test_runner(runner,source,output)
File "/home/thomas/.ipy_pr_tests/venv-python3.2/lib/python3.2/site-packages/ipython-0.13.dev-py3.2.egg/IPython/lib/tests/test_irunner_pylab_magic.py", line 53, in _test_runner
self.fail(message)
AssertionError: Mismatch in number of lines
Expected:
~~~~~~~~~
In \[1\]: from IPython\.config\.application import Application
In \[2\]: app = Application\.instance\(\)
In \[3\]: app\.pylab_import_all = True
In \[4\]: pylab
^Welcome to pylab, a matplotlib-based Python environment
For more information, type 'help\(pylab\)'\.
In \[5\]: ip=get_ipython\(\)
In \[6\]: 'plot' in ip\.user_ns
Out\[6\]: True
Got:
~~~~~~~~~
In [1]: from IPython.config.application import Application
In [2]: app = Application.instance()
In [3]: app.pylab_import_all = True
In [4]: pylab
/usr/local/lib/python3.2/dist-packages/matplotlib/__init__.py:931: UserWarning: This call to matplotlib.use() has no effect
because the the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
if warn: warnings.warn(_use_error_msg)
Welcome to pylab, a matplotlib-based Python environment [backend: Qt4Agg].
For more information, type 'help(pylab)'.
In [5]: ip=get_ipython()
In [6]: 'plot' in ip.user_ns
Out[6]: True
"""Fail immediately, with the given message."""
>> raise self.failureException("Mismatch in number of lines\n\nExpected:\n~~~~~~~~~\nIn \\[1\\]: from IPython\\.config\\.application import Application\nIn \\[2\\]: app = Application\\.instance\\(\\)\nIn \\[3\\]: app\\.pylab_import_all = True\nIn \\[4\\]: pylab\n^Welcome to pylab, a matplotlib-based Python environment\nFor more information, type 'help\\(pylab\\)'\\.\nIn \\[5\\]: ip=get_ipython\\(\\)\nIn \\[6\\]: 'plot' in ip\\.user_ns\nOut\\[6\\]: True\n\nGot:\n~~~~~~~~~\nIn [1]: from IPython.config.application import Application\nIn [2]: app = Application.instance()\nIn [3]: app.pylab_import_all = True\nIn [4]: pylab\n/usr/local/lib/python3.2/dist-packages/matplotlib/__init__.py:931: UserWarning: This call to matplotlib.use() has no effect\nbecause the the backend has already been chosen;\nmatplotlib.use() must be called *before* pylab, matplotlib.pyplot,\nor matplotlib.backends is imported for the first time.\n if warn: warnings.warn(_use_error_msg)\nWelcome to pylab, a matplotlib-based Python environment [backend: Qt4Agg].\nFor more information, type 'help(pylab)'.\nIn [5]: ip=get_ipython()\nIn [6]: 'plot' in ip.user_ns\nOut[6]: True")
----------------------------------------------------------------------
Ran 24 tests in 11.259s
FAILED (failures=2)
----------------------------------------------------------------------
Ran 0 tests in 0.001s
OK
.........................S..S......................S
----------------------------------------------------------------------
Ran 52 tests in 0.065s
OK (SKIP=3)
..................................................................SS...S............S............S..S..............................................S.........S..................................................
----------------------------------------------------------------------
Ran 208 tests in 1.454s
OK (SKIP=8)
......................................................
----------------------------------------------------------------------
Ran 54 tests in 0.043s
OK
...........................
----------------------------------------------------------------------
Ran 27 tests in 10.223s
OK
..............................................................................................S..............K..........K.................S
----------------------------------------------------------------------
Ran 139 tests in 39.657s
OK (KNOWNFAIL=2, SKIP=2)
**********************************************************************
IPython test group: IPython.config
**********************************************************************
IPython test group: IPython.core
**********************************************************************
IPython test group: IPython.extensions
**********************************************************************
IPython test group: IPython.frontend
**********************************************************************
IPython test group: IPython.lib
**********************************************************************
IPython test group: IPython.scripts
**********************************************************************
IPython test group: IPython.testing
**********************************************************************
IPython test group: IPython.utils
**********************************************************************
IPython test group: IPython.nbformat
**********************************************************************
IPython test group: IPython.zmq
**********************************************************************
IPython test group: IPython.parallel
**********************************************************************
Test suite completed for system with the following information:
{'commit_hash': '25ceebe',
'commit_source': 'installation',
'ipython_path': '/home/thomas/.ipy_pr_tests/venv-python3.2/lib/python3.2/site-packages/ipython-0.13.dev-py3.2.egg/IPython',
'ipython_version': '0.13.dev',
'os_name': 'posix',
'platform': 'Linux-3.2.0-24-generic-i686-with-Ubuntu-12.04-precise',
'sys_executable': '/home/thomas/.ipy_pr_tests/venv-python3.2/bin/python',
'sys_platform': 'linux2',
'sys_version': '3.2.3 (default, May 3 2012, 15:54:42) \n[GCC 4.6.3]'}
Tools and libraries available at test time:
curses matplotlib pexpect qt sqlite3 tornado zmq
Tools and libraries NOT available at test time:
pymongo wx wx.aui
Ran 11 test groups in 110.996s
Status:
ERROR - 1 out of 11 test groups failed.
----------------------------------------
Runner failed: IPython.lib
You may wish to rerun this one individually, with:
/home/thomas/.ipy_pr_tests/venv-python3.2/bin/python /home/thomas/.ipy_pr_tests/venv-python3.2/lib/python3.2/site-packages/ipython-0.13.dev-py3.2.egg/IPython/testing/iptest.py IPython.lib
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment