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

Notebook tests fail on pypy3 #91

Open
Erotemic opened this issue Jan 21, 2021 · 0 comments
Open

Notebook tests fail on pypy3 #91

Erotemic opened this issue Jan 21, 2021 · 0 comments

Comments

@Erotemic
Copy link
Owner

Currently hitting a pypy issue with the Jupyter notebook tests. Not sure what the cause is.

Getting:

(venv) root@454e785b355d:~/test-minimal-pypy3#     xdoctest testing/test_notebook.py test_xdoctest_inside_notebook

=====================================
_  _ ___  ____ ____ ___ ____ ____ ___
 \/  |  \ |  | |     |  |___ [__   |
_/\_ |__/ |__| |___  |  |___ ___]  |

=====================================

Start doctest_module('testing/test_notebook.py')
Listing tests
gathering tests
running 1 test(s)
====== <exec> ======
* ZERO-ARG FUNC : testing/test_notebook.py::test_xdoctest_inside_notebook:0
ZERO-ARG SOURCE
1 >>> test_xdoctest_inside_notebook()
ZERO-ARG STDOUT/STDERR
executing notebook in dpath = '/root/test-minimal-pypy3/testing'
[IPKernelApp] ERROR | Invalid Message
Traceback (most recent call last):
  File "/root/test-minimal-pypy3/venv/site-packages/ipykernel/kernelbase.py", line 227, in dispatch_shell
    msg = self.session.deserialize(msg, content=True, copy=False)
  File "/root/test-minimal-pypy3/venv/site-packages/jupyter_client/session.py", line 924, in deserialize
    self._add_digest(signature)
  File "/root/test-minimal-pypy3/venv/site-packages/jupyter_client/session.py", line 867, in _add_digest
    self.digest_history.add(signature)
TypeError: unhashable type: '_cffi_backend.buffer'
[IPKernelApp] ERROR | Invalid Message
Traceback (most recent call last):
  File "/root/test-minimal-pypy3/venv/site-packages/ipykernel/kernelbase.py", line 227, in dispatch_shell
    msg = self.session.deserialize(msg, content=True, copy=False)
  File "/root/test-minimal-pypy3/venv/site-packages/jupyter_client/session.py", line 920, in deserialize
    if signature in self.digest_history:
TypeError: unhashable type: '_cffi_backend.buffer'
[IPKernelApp] ERROR | Invalid Message
Traceback (most recent call last):
  File "/root/test-minimal-pypy3/venv/site-packages/ipykernel/kernelbase.py", line 227, in dispatch_shell
    msg = self.session.deserialize(msg, content=True, copy=False)
  File "/root/test-minimal-pypy3/venv/site-packages/jupyter_client/session.py", line 920, in deserialize
    if signature in self.digest_history:
TypeError: unhashable type: '_cffi_backend.buffer'

Currently the tests have been disabled. This used to work on older versions of requirements. Not sure where the break occurred. This issue isn't crazy important, I don't think many people are using pypy AND doctesting jupyter notebooks, and I think this might just be a test issue, and not an actual problem.

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

1 participant