pylint-dev / pylint-dev/astroid
Problem with partial and pickle
- Dominant language
- Python
- Stars
- 582
- Forks
- 357
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 23
Description
I'm not using astroid directly, but discovered this issue [downstream](https://github.com/readthedocs/sphinx-autoapi/issues/264) using sphinx-autoapi.
It seems I've run into an edge case with `partial` and the `pickle` module. I've added a new test case to `astroid` to showcase my problem: https://github.com/PyCQA/astroid/compare/master...renefritze:conditional_test_pickle
With the last commit on that branch the test suite succeeds: https://travis-ci.com/github/renefritze/astroid/jobs/487475875
Dropping the last commit, the suite fails: https://travis-ci.com/github/renefritze/astroid/jobs/487452325
The difference being https://github.com/PyCQA/astroid/commit/307f3acbfaa8bac3e7e4f1f0d0f38a965e54c53d
Contributor guide
No contributing guide indexed for this repository
Research direction
Compare the linked conditional_test_pickle branch with master, focusing on the added astroid test and commit 307f3acbfaa8bac3e7e4f1f0d0f38a965e54c53d. Run the relevant test suite with and without that commit to reproduce the partial and pickle failure. Done means the reported test passes without the workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100