[IPython-dev] correct test-suite
Thomas Spura
tomspur at fedoraproject.org
Tue Jul 27 02:49:40 EDT 2010
Am Mon, 26 Jul 2010 23:40:16 -0700
schrieb Fernando Perez <fperez.net at gmail.com>:
> ...
>
> All of this seems to indicate that you are somehow mixing an old,
> 0.10.x tree with the tests for the current code. In 0.11.x we
> reorganized the big code dump from the original ipython into a more
> rational structure, but your tests can't seem to find *any* imports.
> That seems to indicate that you are finding on your PYTHONPATH the old
> code first.
Sorry... Nope...
>
> Try this and let us know what you get (from a plain python shell):
>
> >>> import IPython
> >>> print IPython.__version__
> 0.11.alpha1.git
> >>> print IPython.__file__
> /home/fperez/usr/lib/python2.6/site-packages/IPython/__init__.pyc
My output (when checking out my_random_stuff branch with the SHA1
commit):
$ ipython
Python 2.6.4 (r264:75706, Jun 4 2010, 18:20:31)
Type "copyright", "credits" or "license" for more information.
IPython 0.11.alpha1.git.125afa252a525213df44926912a5a68643434ebf -- An
enhanced Interactive Python. ? -> Introduction and overview of
IPython's features. %quickref -> Quick reference.
help -> Python's own help system.
object? -> Details about 'object'. ?object also works, ?? prints more.
In [1]: import IPython
In [2]: IPython.__version__
Out[2]: '0.11.alpha1.git.125afa252a525213df44926912a5a68643434ebf'
In [3]: IPython.__file__
Out[3]: '/usr/lib/python2.6/site-packages/IPython/__init__.pyc'
>
>
> Also, looking at which one of these imports work will be a good
> tell-tale sign (from a normal python shell). If you have the real
> 0.11 tree, you should get:
>
> >>> import IPython.core.ultratb
> >>> import IPython.ultraTB
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named ultraTB
>
>
> whereas a 0.10.x tree gives the opposite:
>
> >>> import IPython.ultraTB
> >>> import IPython.core.ultratb
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> ImportError: No module named core.ultratb
$ python2.6
Python 2.6.4 (r264:75706, Jun 4 2010, 18:20:31)
[GCC 4.4.4 20100503 (Red Hat 4.4.4-2)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import IPython.core.ultratb
>>> import IPython.ultraTB
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named ultraTB
-> 0.11 tree
Thomas
More information about the IPython-dev
mailing list