[IPython-dev] Please help test ipython trunk

Darren Dale dsdale24@gmail....
Sat Apr 25 19:10:27 CDT 2009


Hi Brian,

On Sat, Apr 25, 2009 at 7:10 PM, Brian Granger <ellisonbg.net@gmail.com>wrote:

> Hi,
>
> After a few weeks of work, we have just merged a massive branch into
> the ipython trunk.  Because of the massive numbers of changes that
> have been merged in, we really need some help testing out IPython
> before we cut a 0.10 release (we are basically done merging in things
> for 0.10, more on that in a separate email thread).  Here is how you
> can help:
>
> 1.  Get the latest trunk
>
> bzr branch lp:ipython
>
> 2.  Install and run the test suite:
>
> iptest
>
> 3.  Try out lots of things to see if anything is broken
>
> 4.  Report back
>


I was just reinstalling 64-bit Jaunty on a dual core laptop when I saw your
email. I updated my branch, installed and first ran "python setupegg.py
nosetests" which yielded:

EEEEE...E.S..S..E.S...SS..SSS.................S......SSS.S.S.Could not open
file <nosetests> for safe execution.

I know the tests are supposed to be run with iptest, I was just curious.
When I run with iptest I get a number of errors because I haven't installed
twisted:

Failure: ImportError (No module named zope.interface) ... ERROR

Failure: ImportError (No module named twisted.python) ... ERROR

Failure: ImportError (No module named twisted.python) ... ERROR

Failure: ImportError (No module named twisted.python) ... ERROR

Failure: ImportError (No module named twisted.trial) ... ERROR

Failure: ImportError (No module named twisted.python) ... ERROR

Failure: ImportError (No module named twisted.python) ... ERROR

Failure: ImportError (No module named twisted.python) ... ERROR

I installed the libraries needed for parallel operation, and got a few
errors from iptest:

FAILED (failures=3)
*****************************************************************************
IPython test set: trial

Traceback (most recent call last):

  File "/usr/lib/python2.6/dist-packages/twisted/python/usage.py", line 241,
in
parseOptions


self.postOptions()
  File "/usr/lib/python2.6/dist-packages/twisted/scripts/trial.py", line
293, in
postOptions

    self['reporter'] =
self._loadReporterByName(self['reporter'])
  File "/usr/lib/python2.6/dist-packages/twisted/scripts/trial.py", line
279, in
_loadReporterByName

    for p in
plugin.getPlugins(itrial.IReporter):
  File "/usr/lib/python2.6/dist-packages/twisted/plugin.py", line 200, in
getPlugins

    allDropins =
getCache(package)
--- <exception caught here>
---
  File "/usr/lib/python2.6/dist-packages/twisted/plugin.py", line 179, in
getCache


dropinPath.setContent(pickle.dumps(dropinDotCache))
  File "/usr/lib/python2.6/dist-packages/twisted/python/filepath.py", line
623, in
setContent

    f =
sib.open('w')
  File "/usr/lib/python2.6/dist-packages/twisted/python/filepath.py", line
433, in
open

    return open(self.path,
mode+'b')
exceptions.IOError: [Errno 13] Permission denied:
'/usr/lib/python2.6/dist-packages/twisted/plugins/dropin.cache.new'

---------

and:

    testStrictDict ... ERROR: An unexpected error occurred while tokenizing
input

The following traceback may be corrupted or
invalid
The error message is: ('EOF in multi-line statement', (37, 0))
--------

Finally, I ran the following:

$ iptest -v IPython.frontend
/usr/lib/python2.6/dist-packages/foolscap/banana.py:2: DeprecationWarning:
the sets module is
deprecated
  import struct, sets,
time
/usr/lib/python2.6/dist-packages/foolscap/vocab.py:2: DeprecationWarning:
the sha module is deprecated; use the hashlib module
instead
  import
sha
Check that is_complete works. ...
ok
Tests line completion heuristic. ...
ok
Tests line completion heuristic. ...
ok
Tests line completion heuristic. ...
ok
IPython.frontend.tests.test_prefilterfrontend.test_capture ...
ok
IPython.frontend.tests.test_prefilterfrontend.test_completion_equal ...
FAIL
IPython.frontend.tests.test_prefilterfrontend.test_completion_indexing ...
FAIL
IPython.frontend.tests.test_prefilterfrontend.test_completion_parenthesis
... ok
IPython.frontend.tests.test_prefilterfrontend.test_completion_simple ...
ok
IPython.frontend.tests.test_prefilterfrontend.test_execution ...
FAIL
IPython.frontend.tests.test_prefilterfrontend.test_help ...
ok
IPython.frontend.tests.test_prefilterfrontend.test_magic ...
ok
IPython.frontend.tests.test_prefilterfrontend.test_multiline ...
ok
A simple test to see if we can execute a process and get the output. ...
ok
Checks that we can send characters on stdin to the process. ...
ok
Check that we can kill a process, and its subprocess. ...
ok

======================================================================
FAIL: IPython.frontend.tests.test_prefilterfrontend.test_completion_equal
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/python-support/python2.6/nose/case.py", line 182, in
runTest
    self.test(*self.arg)

  File
"/home/darren/Projects/ipython/IPython/frontend/tests/test_prefilterfrontend.py",
line 82, in my_func
    out =
func()
  File
"/home/darren/Projects/ipython/IPython/frontend/tests/test_prefilterfrontend.py",
line 241, in test_completion_equal
    assert_equal(f.input_buffer, 'a=1.__')
AssertionError: 'a=1.' != 'a=1.__'
>>  raise self.failureException, \
          (None or '%r != %r' % ('a=1.', 'a=1.__'))


======================================================================
FAIL: IPython.frontend.tests.test_prefilterfrontend.test_completion_indexing
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/python-support/python2.6/nose/case.py", line 182, in
runTest
    self.test(*self.arg)
  File
"/home/darren/Projects/ipython/IPython/frontend/tests/test_prefilterfrontend.py",
line 82, in my_func
    out = func()
  File
"/home/darren/Projects/ipython/IPython/frontend/tests/test_prefilterfrontend.py",
line 231, in test_completion_indexing
    assert_equal(f.input_buffer, 'a[0].__')
AssertionError: 'a[0].' != 'a[0].__'
>>  raise self.failureException, \
          (None or '%r != %r' % ('a[0].', 'a[0].__'))


======================================================================
FAIL: IPython.frontend.tests.test_prefilterfrontend.test_execution
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/lib/python-support/python2.6/nose/case.py", line 182, in
runTest
    self.test(*self.arg)
  File
"/home/darren/Projects/ipython/IPython/frontend/tests/test_prefilterfrontend.py",
line 82, in my_func
    out = func()
  File
"/home/darren/Projects/ipython/IPython/frontend/tests/test_prefilterfrontend.py",
line 103, in test_execution
    assert_equal(out_value, '1\n')
AssertionError: '>print(1)\n1\n' != '1\n'
>>  raise self.failureException, \
          (None or '%r != %r' % ('>print(1)\n1\n', '1\n'))


----------------------------------------------------------------------
Ran 16 tests in 0.209s

FAILED (failures=3)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20090425/ea8f7e32/attachment-0001.html 


More information about the IPython-dev mailing list