[IPython-dev] Closing in on 0.11? We need some review/feedback help

Gökhan Sever gokhansever@gmail....
Wed Jan 13 16:48:52 CST 2010


Here is one test comes from me:

================================================================================
Platform     :
Linux-2.6.31.9-174.fc12.i686.PAE-i686-with-fedora-12-Constantine
Python       : ('CPython', 'tags/r262', '71600')
IPython      : 0.11.bzr.r1321
================================================================================


bzr branch lp:~fdo.perez/ipython/trunk-dev
python setupegg.py develop

python -c "import IPython; IPython.test()"

----------------------------------------------------------------------
Ran 66 tests in 0.142s

OK (SKIP=6)

*****************************************************************************
Ran 9 test groups in 7.364s

ERROR - 3 out of 9 test groups failed.
----------------------------------------
Runner failed: IPython.core
You may wish to rerun this one individually, with:
python /usr/bin/iptest -v IPython.core

----------------------------------------
Runner failed: IPython.kernel
You may wish to rerun this one individually, with:
python /usr/bin/iptest -v IPython.kernel

----------------------------------------
Runner failed: IPython.extensions
You may wish to rerun this one individually, with:
python /usr/bin/iptest -v IPython.extensions


and the details:


*python /usr/bin/iptest -v IPython.core*
======================================================================
FAIL: Test that object's __del__ methods are called on exit.
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
    self.test(*self.arg)
  File
"/home/gsever/Desktop/python-repo/ipython-dev/IPython/testing/decorators.py",
line 225, in skipper_func
    return f(*args, **kwargs)
  File
"/home/gsever/Desktop/python-repo/ipython-dev/IPython/core/tests/test_run.py",
line 160, in test_obj_del
    tt.ipexec_validate(self.fname, 'object A deleted')
  File
"/home/gsever/Desktop/python-repo/ipython-dev/IPython/testing/tools.py",
line 288, in ipexec_validate
    nt.assert_equals(out.strip(), expected_out.strip())
AssertionError: '\x1b[?1034hobject A deleted' != 'object A deleted'
>>  raise self.failureException, \
          (None or '%r != %r' % ('\x1b[?1034hobject A deleted', 'object A
deleted'))


======================================================================
FAIL: IPython.core.tests.test_run.TestMagicRunSimple.test_tclass
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
    self.test(*self.arg)
  File
"/home/gsever/Desktop/python-repo/ipython-dev/IPython/testing/decorators.py",
line 225, in skipper_func
    return f(*args, **kwargs)
  File
"/home/gsever/Desktop/python-repo/ipython-dev/IPython/core/tests/test_run.py",
line 174, in test_tclass
    tt.ipexec_validate(self.fname, out)
  File
"/home/gsever/Desktop/python-repo/ipython-dev/IPython/testing/tools.py",
line 288, in ipexec_validate
    nt.assert_equals(out.strip(), expected_out.strip())
AssertionError: "\x1b[?1034hARGV 1-: ['C-first']\nARGV 1-:
['C-second']\ntclass.py: deleting object: C-first" != "ARGV 1-:
['C-first']\nARGV 1-: ['C-second']\ntclass.py: deleting object: C-first"
>>  raise self.failureException, \
          (None or '%r != %r' % ("\x1b[?1034hARGV 1-: ['C-first']\nARGV 1-:
['C-second']\ntclass.py: deleting object: C-first", "ARGV 1-:
['C-first']\nARGV 1-: ['C-second']\ntclass.py: deleting object: C-first"))


----------------------------------------------------------------------
Ran 102 tests in 1.003s

FAILED (SKIP=1, failures=2)



*python /usr/bin/iptest -v IPython.kernel*
Failure: AttributeError ('module' object has no attribute 'kernel') ...
ERROR

======================================================================
ERROR: Failure: AttributeError ('module' object has no attribute 'kernel')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/loader.py", line 353, in
loadTestsFromName
    module = resolve_name(addr.module)
  File "/usr/lib/python2.6/site-packages/nose/util.py", line 310, in
resolve_name
    obj = getattr(obj, part)
AttributeError: 'module' object has no attribute 'kernel'

----------------------------------------------------------------------
Ran 1 test in 0.001s

FAILED (errors=1)


*python /usr/bin/iptest -v IPython.extensions*
======================================================================
FAIL:
IPython.extensions.tests.test_pretty.TestPrettyInteractively.test_printers
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/nose/case.py", line 182, in runTest
    self.test(*self.arg)
  File
"/home/gsever/Desktop/python-repo/ipython-dev/IPython/testing/decorators.py",
line 225, in skipper_func
    return f(*args, **kwargs)
  File
"/home/gsever/Desktop/python-repo/ipython-dev/IPython/extensions/tests/test_pretty.py",
line 101, in test_printers
    tt.ipexec_validate(self.fname, ipy_out)
  File
"/home/gsever/Desktop/python-repo/ipython-dev/IPython/testing/tools.py",
line 288, in ipexec_validate
    nt.assert_equals(out.strip(), expected_out.strip())
AssertionError: '\x1b[?1034hA()\nB()\n<A>\n<B>' != 'A()\nB()\n<A>\n<B>'
>>  raise self.failureException, \
          (None or '%r != %r' % ('\x1b[?1034hA()\nB()\n<A>\n<B>',
'A()\nB()\n<A>\n<B>'))


----------------------------------------------------------------------
Ran 4 tests in 0.286s

FAILED (failures=1)




Overall it works nice in my system. However I couldn't get it loading my
previous ipy_user_conf.py file? Is there a setting for this?

Ahaa, here is one catch (some extra outputs in whos listing --which I was
going to ask if it is possible to list the command that we used to construct
a object next the Data/Info column in whos listing?

Sometimes I search my history to see how I constructed an object. That would
be useful to have it listed on a whos listing.

In [1]: a = range(10)

In [2]: b = [i*i for i in range(5)]

In [4]: c = {"x":3, "y":5}

In [5]: whos
Variable      Type              Data/Info
-----------------------------------------
In            InputList         ['\n', u'a =
range(10)\n'<...>thon().magic("whos ")\n']
Out           dict              {}
a             list              [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
b             list              [0, 1, 4, 9, 16]
c             dict              {'y': 5, 'x': 3}
get_ipython   instancemethod    <bound method
Interactive<...>l('ipython.component0')>>
i             int               4



On Wed, Jan 13, 2010 at 4:19 AM, Fernando Perez <fperez.net@gmail.com>wrote:

> Hi folks,
>
> I've managed to make enough progress on this machinery that I think we
> can soon start looking at what's needed to call it 0.11.  But we could
> really use some help with review... We're trying to really do a good
> job of looking at each other's work, but I'm afraid I've made things a
> bit painful for Brian, who lately has taken the brunt of this.  But
> reviewing and critiquing each other's work is the best way to improve
> the quality of the project, and I really think we have something very
> good coming along...
>
> Right now the merge request for my trunk-dev branch:
>
> https://code.launchpad.net/~fdo.perez/ipython/trunk-dev<https://code.launchpad.net/%7Efdo.perez/ipython/trunk-dev>
>
> at
>
> https://code.launchpad.net/~fdo.perez/ipython/trunk-dev/+merge/16695<https://code.launchpad.net/%7Efdo.perez/ipython/trunk-dev/+merge/16695>
>
> shows a diff of ~11400 lines, the result of very little sleep in about
> 12 days.  There's simply no way that anyone can possibly review all
> that line by line, but some testing and overall feedback would be very
> welcome, from any of you.  Very importantly, our test status is, as
> shown in r1322:
>
> As of this revision, we're down to 0 errors on linux and 1 on windows (that
> appears twice). The windows error is tracked here:
>
> https://bugs.launchpad.net/ipython/+bug/506839
>
> And I'm pretty sure the windows error will be trivial for Brian to
> fix, and it only shows if you have twisted.  I ran the test suite with
> only py2.6.4, pyreadline and nose, and got 0 errors on windows.  I
> then installed EPD 6 and ran ipython from the source tree, with the
> results above.
>
> So we're in pretty good shape tests-wise.   Furthermore, I've
> documented the test system, so that from now on we never again have an
> excuse not to blanket our code with tests:
>
> http://ipython.scipy.org/doc/bzr.r1321/development/testing.html
>
> In order to make it as easy as possible for anyone interested to test,
> in addition to the branch, here are various self-contained downloads,
> including a win32 binary (the ones with bzr.r1321 in the title, the
> nightlies are from trunk):
>
> http://ipython.scipy.org/dist/testing/
>
> At this point, though we do have some regressions and code that hasn't
> been ported over, there are enough improvements both user-facing and
> structural, that I think we can begin thinking about 0.11.  But for
> that, we need some eyes on this recent coding blitz...
>
> Thanks for any feedback!
>
> f
> _______________________________________________
> IPython-dev mailing list
> IPython-dev@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-dev
>



-- 
Gökhan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20100113/3b6744fb/attachment-0001.html 


More information about the IPython-dev mailing list