Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test failures with octave 7.1 #215

Open
opoplawski opened this issue May 11, 2022 · 3 comments
Open

test failures with octave 7.1 #215

opoplawski opened this issue May 11, 2022 · 3 comments

Comments

@opoplawski
Copy link

The Fedora python-octave-kernel package fails to build with the following test failure with octave 7.1:

+ cd octave_kernel-0.34.2
+ PYTHONPATH=/builddir/build/BUILDROOT/python-octave-kernel-0.34.2-1.fc37.x86_64/usr/lib/python3.10/site-packages
+ JUPYTER_PATH=/builddir/build/BUILDROOT/python-octave-kernel-0.34.2-1.fc37.x86_64/usr/share/jupyter
+ xvfb-run -a -s '-screen 0 640x480x24' /usr/bin/python3 test_octave_kernel.py -v
/usr/lib/python3.10/site-packages/jupyter_client/manager.py:95: DeprecationWarning: There is no current event loop
  self._ready = Future()
/usr/lib/python3.10/site-packages/jupyter_client/utils.py:14: DeprecationWarning: There is no current event loop
  loop = asyncio.get_event_loop()
/usr/lib/python3.10/site-packages/jupyter_client/kernelspec.py:50: DeprecationWarning: Passing unrecognized arguments to super(KernelSpec).__init__(mimetype='text/x-octave', name='octave').
object.__init__() takes exactly one argument (the instance to initialize)
This is deprecated in traitlets 4.2.This error will be raised in a future release of traitlets.
  return cls(resource_dir=resource_dir, **kernel_dict)
test_clear_output (__main__.OctaveKernelTests) ... skipped ''
test_completion (__main__.OctaveKernelTests) ... /usr/lib64/python3.10/site-packages/zmq/_future.py:410: DeprecationWarning: There is no current event loop
  f = future or self._Future()
test_display_data (__main__.OctaveKernelTests) ... skipped ''
test_error (__main__.OctaveKernelTests) ... skipped ''
test_execute_result (__main__.OctaveKernelTests) ... skipped ''
test_execute_stderr (__main__.OctaveKernelTests) ... skipped ''
test_execute_stdout (__main__.OctaveKernelTests) ... FAIL
test_history (__main__.OctaveKernelTests) ... skipped ''
test_inspect (__main__.OctaveKernelTests) ... skipped ''
test_is_complete (__main__.OctaveKernelTests) ... skipped ''
test_kernel_info (__main__.OctaveKernelTests) ... ok
test_pager (__main__.OctaveKernelTests) ... ok
======================================================================
FAIL: test_completion (__main__.OctaveKernelTests) (text='acos')
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/jupyter_kernel_test/__init__.py", line 145, in test_completion
    self.assertEqual(set(reply['content']['matches']),
AssertionError: Items in the first set but not the second:
'\x1b[?2004h'
'\x1b[?2004l'

======================================================================
FAIL: test_execute_stdout (__main__.OctaveKernelTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/jupyter_kernel_test/__init__.py", line 102, in test_execute_stdout
    self.assertIn('hello, world', msg['content']['text'])
AssertionError: 'hello, world' not found in '\x1b[?2004l\n'

----------------------------------------------------------------------

This is with jupyter-kernel-test 0.4.3.

@blink1073
Copy link
Contributor

I believe this is the same issue as kislyuk/argcomplete#337 (comment)

@QuLogic
Copy link
Contributor

QuLogic commented Nov 28, 2022

Yes, it is the same issue, but the change in metakernel above does not fix it.

@iimog
Copy link

iimog commented Jul 12, 2023

I have the same problem on Ubuntu 22.04 with Octave 7.2.0, as well. My metakernel 0.29.4, contains the proposed fix. I could not figure out, why it does not actually fix it.

However, as a workaround, I added set enable-bracketed-paste off in my ~/.inputrc (according to https://savannah.gnu.org/bugs/?54335#comment3 this disables bracketed paste in octave). This works for me, but it might affect other applications as well. I have not encountered any problems, yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants