<br><br><div class="gmail_quote">On Thu, Jan 14, 2010 at 5:49 PM, Fernando Perez <span dir="ltr"><<a href="http://fperez.net">fperez.net</a>@<a href="http://gmail.com">gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Gokhan,<br>
<div class="im"><br>
On Wed, Jan 13, 2010 at 2:48 PM, Gökhan Sever <<a href="mailto:gokhansever@gmail.com">gokhansever@gmail.com</a>> wrote:<br>
> Here is one test comes from me:<br>
><br>
> ================================================================================<br>
> Platform :<br>
> Linux-2.6.31.9-174.fc12.i686.PAE-i686-with-fedora-12-Constantine<br>
> Python : ('CPython', 'tags/r262', '71600')<br>
> IPython : 0.11.bzr.r1321<br>
> ================================================================================<br>
<br>
</div>Great, thanks!<br>
<div><div></div><div class="h5">><br>
> bzr branch lp:~fdo.perez/ipython/trunk-dev<br>
> python setupegg.py develop<br>
><br>
> python -c "import IPython; IPython.test()"<br>
><br>
> ----------------------------------------------------------------------<br>
> Ran 66 tests in 0.142s<br>
><br>
> OK (SKIP=6)<br>
><br>
> *****************************************************************************<br>
> Ran 9 test groups in 7.364s<br>
><br>
> ERROR - 3 out of 9 test groups failed.<br>
> ----------------------------------------<br>
> Runner failed: IPython.core<br>
> You may wish to rerun this one individually, with:<br>
> python /usr/bin/iptest -v IPython.core<br>
><br>
> ----------------------------------------<br>
> Runner failed: IPython.kernel<br>
> You may wish to rerun this one individually, with:<br>
> python /usr/bin/iptest -v IPython.kernel<br>
><br>
> ----------------------------------------<br>
> Runner failed: IPython.extensions<br>
> You may wish to rerun this one individually, with:<br>
> python /usr/bin/iptest -v IPython.extensions<br>
><br>
><br>
> and the details:<br>
><br>
><br>
> python /usr/bin/iptest -v IPython.core<br>
> ======================================================================<br>
> FAIL: Test that object's __del__ methods are called on exit.<br>
> ----------------------------------------------------------------------<br>
> Traceback (most recent call last):<br>
> File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest<br>
> self.test(*self.arg)<br>
> File<br>
> "/home/gsever/Desktop/python-repo/ipython-dev/IPython/testing/decorators.py",<br>
> line 225, in skipper_func<br>
> return f(*args, **kwargs)<br>
> File<br>
> "/home/gsever/Desktop/python-repo/ipython-dev/IPython/core/tests/test_run.py",<br>
> line 160, in test_obj_del<br>
> tt.ipexec_validate(self.fname, 'object A deleted')<br>
> File<br>
> "/home/gsever/Desktop/python-repo/ipython-dev/IPython/testing/tools.py",<br>
> line 288, in ipexec_validate<br>
> nt.assert_equals(out.strip(), expected_out.strip())<br>
> AssertionError: '\x1b[?1034hobject A deleted' != 'object A deleted'<br>
>>> raise self.failureException, \<br>
> (None or '%r != %r' % ('\x1b[?1034hobject A deleted', 'object A<br>
> deleted'))<br>
<br>
</div></div>Wow, this is weird. It's producing color escapes for the prompts,<br>
which I don't see here and have no idea how they are happening,<br>
because I'm initializing the internal instance in nocolor mode. Very<br>
bizarre.<br>
<br>
Could you do me a favor? Try the attached patch and see if that helps,<br>
I'm a bit stumped.<br>
<div class="im"><br>
> ======================================================================<br>
> FAIL: IPython.core.tests.test_run.TestMagicRunSimple.test_tclass<br>
<br>
</div>same error as above<br>
<div class="im"><br>
> python /usr/bin/iptest -v IPython.kernel<br>
> Failure: AttributeError ('module' object has no attribute 'kernel') ...<br>
> ERROR<br>
<br>
</div>Huh? That doesn't make any sense.<br>
<br>
Are you sure you're running off the branch? I don't use 'setup.py<br>
develop', so I'm not sure it works correctly. I simply have in my<br>
PYTHONPATH a symlink to my source ipython directory, so that<br>
<br>
import IPython<br>
<br>
loads the right version. Could you verify that you are getting the<br>
right version?<br></blockquote><div><br>I did "python setup.py install" after re-pulling your branch. <br><br>In [2]: IPython.__version__ <br>Out[2]: '0.11.bzr.r1321'<br><br>applied your patch. Test runs produced the same errors. <br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
> ======================================================================<br>
> ERROR: Failure: AttributeError ('module' object has no attribute 'kernel')<br>
> ----------------------------------------------------------------------<br>
> Traceback (most recent call last):<br>
> File "/usr/lib/python2.6/site-packages/nose/loader.py", line 353, in<br>
> loadTestsFromName<br>
> module = resolve_name(addr.module)<br>
> File "/usr/lib/python2.6/site-packages/nose/util.py", line 310, in<br>
> resolve_name<br>
> obj = getattr(obj, part)<br>
> AttributeError: 'module' object has no attribute 'kernel'<br>
><br>
> ----------------------------------------------------------------------<br>
> Ran 1 test in 0.001s<br>
><br>
> FAILED (errors=1)<br>
><br>
><br>
> python /usr/bin/iptest -v IPython.extensions<br>
> ======================================================================<br>
> FAIL:<br>
> IPython.extensions.tests.test_pretty.TestPrettyInteractively.test_printers<br>
<br>
</div>Same again as before..<br>
<div class="im"><br>
> Overall it works nice in my system. However I couldn't get it loading my<br>
> previous ipy_user_conf.py file? Is there a setting for this?<br>
<br>
</div>The config system is different now:<br>
<br>
<a href="http://ipython.scipy.org/doc/bzr.r1321/config/overview.html#config-overview" target="_blank">http://ipython.scipy.org/doc/bzr.r1321/config/overview.html#config-overview</a><br></blockquote><div><br><br>Thanks for the pointer :)<br>
</div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
> Ahaa, here is one catch (some extra outputs in whos listing --which I was<br>
> going to ask if it is possible to list the command that we used to construct<br>
> a object next the Data/Info column in whos listing?<br>
><br>
> Sometimes I search my history to see how I constructed an object. That would<br>
> be useful to have it listed on a whos listing.<br>
<br>
</div>There is no way to know this in python in general, since multiple<br>
names can be bound to one object, assignments can happen in many<br>
different ways (code can write to namespace dicts directly, etc). But<br>
you can write a little extension of yours that walks the In input<br>
history list looking for things that look like variable assignments.<br>
It won't be very robust, but could be useful. If you end up liking<br>
it, put it up on the cookbook and we can ship it later as an optional<br>
tool, once you've stress-tested it.<br>
<br></blockquote><div><br>Nice assignment. I will work on once I have some more free time. <br><br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Cheers,<br>
<font color="#888888"><br>
f<br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Gökhan<br>