Skip to content

Test failure in IPython.zmq.tests.test_message_spec.test_complete "'pyout' != 'status'" #1668

@jenshnielsen

Description

@jenshnielsen

I'm seeing the following test failure on both python2.7 and 3.2

This happens because my profile_default/ipython_config.py contains
c.InteractiveShellApp.exec_lines = ['%precision %e']
to set the print precision. Shouldn't the tests be independent of the default profile?
removing this line makes the test pass.

======================================================================
FAIL: test (IPython.zmq.tests.test_message_spec.test_complete)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/IPython/testing/_paramtestpy2.py", line 54, in run_parametric
    testgen.next()
  File "/usr/local/lib/python2.7/dist-packages/IPython/zmq/tests/test_message_spec.py", line 398, in test_complete
    msg_id, reply = execute(code="alpha = albert = 5")
  File "/usr/local/lib/python2.7/dist-packages/IPython/zmq/tests/test_message_spec.py", line 65, in execute
    list(validate_message(busy, 'status', msg_id))
  File "/usr/local/lib/python2.7/dist-packages/IPython/zmq/tests/test_message_spec.py", line 233, in validate_message
    yield nt.assert_equals(msg['msg_type'], msg_type)
AssertionError: 'pyout' != 'status'
    "'pyout' != 'status'" = '%s != %s' % (safe_repr('pyout'), safe_repr('status'))
    "'pyout' != 'status'" = self._formatMessage("'pyout' != 'status'", "'pyout' != 'status'")
>>  raise self.failureException("'pyout' != 'status'")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions