[IPython-dev] [Fwd: [afayolle at debian.org: Bug#374625: python2.3-ipython: help built-in function does not work]]

Fernando Perez fperez.net at gmail.com
Fri Aug 11 22:27:08 EDT 2006


On 8/11/06, Ville Vainio <vivainio at gmail.com> wrote:

> > If everything goes w/o a hitch tomorrow I think I'll push this to
> > trunk for the unwary users :-).
>
> It's now in trunk; the only thing that needed changing was
> FakeModule.py, Magic.py changes were made redundant by forwarding
> fakemodule getattr's to the provided dictionary.
>
> The monkeypatch is now removed.

Well, the unwary user would be me in this case :(

Your patch broke unittest somehow.  Using

#Listing for unitt.py
"Trivial unittest example"
import unittest
class fooTestCase(unittest.TestCase):
    def test1(self): pass
    def test2(self): pass
unittest.main()
# EOF

I get with revision 1601:
In [1]: run -e unitt
..
----------------------------------------------------------------------
Ran 2 tests in 0.000s

OK

which is the expected result.  But r1602, which is where you applied
this, gives:


In [1]: run -e unitt

----------------------------------------------------------------------
Ran 0 tests in 0.000s

OK


All unit tests are silently ignored.

I'm leaving for a conference (scipy'06) on Monday and have a TON of
stuff to prepare, so I'll simply revert my private copy to r1601 while
you have a chance to work on this.  If we can't get to a satisfactory
solution, we'll revert this and go back to the monkeypatch solution.
It may not be elegant, but 'actually working' counts in my book for a
lot.

Cheers,

f



More information about the IPython-dev mailing list