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

Pycharm: Running a lot of tests results in _pickle.UnpicklingError: pickle data was truncated #93

Open
antondeliverect opened this issue Apr 19, 2023 · 0 comments

Comments

@antondeliverect
Copy link

When you try to run a lot(i.e. few thousands) of tests via Run button there's exception raised:

Fatal error: protocol.data_received() call failed.
protocol: <pycrunch.child_runtime.client_protocol.EchoClientProtocol object at 0x102232470>
transport: <_SelectorSocketTransport fd=6 read=polling write=<idle, bufsize=0>>
Traceback (most recent call last):
  File "/Users/anton/.pyenv/versions/3.10.9/lib/python3.10/asyncio/selector_events.py", line 876, in _read_ready__data_received
    self._protocol.data_received(data)
  File "/Users/anton/..../venv/lib/python3.10/site-packages/pycrunch/child_runtime/client_protocol.py", line 43, in data_received
    msg = pickle.loads(data)
_pickle.UnpicklingError: pickle data was truncated

Splitting it in smaller batches helps to fix this, but it's quite annoying._.
yet again, wanted to mention that it's a fantastic(and quite unique) plugin.

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