Error:
{{{
Traceback (most recent call last):
File "/home/travis/build/millerdev/django-cte/tests/test_recursive.py",
line 212, in test_pickle_recursive_cte_queryset
pickled_qs = pickle.loads(pickle.dumps(regions))
AttributeError: Can't pickle local object
'BaseExpression.convert_value.<locals>.<lambda>'
}}}
Seen here: https://travis-ci.org/millerdev/django-cte/jobs/366128465
Steps to reproduce:
- Clone [https://github.com/dimagi/django-cte django-cte]
- Make a virtualenv any way you prefer.
- `pip install git+https://github.com/django/django.git@master` (or
however you prefer to install django master).
- `pip install nose `
- `nosetests
tests.test_recursive:TestRecursiveCTE.test_pickle_recursive_cte_queryset`
- Observe pickle error.
--
Ticket URL: <https://code.djangoproject.com/ticket/29330>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Daniel Miller):
https://github.com/django/django/pull/9878
--
Ticket URL: <https://code.djangoproject.com/ticket/29330#comment:1>
* stage: Unreviewed => Ready for checkin
--
Ticket URL: <https://code.djangoproject.com/ticket/29330#comment:2>
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"60156750f66fe9e8b95067654b292f12a055393c" 60156750]:
{{{
#!CommitTicketReference repository=""
revision="60156750f66fe9e8b95067654b292f12a055393c"
Fixed #29330 -- Fixed crash when pickling BaseExpression.
Regression in cfff2af02be40106d4759cc6f8bfa476ce82421c.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29330#comment:3>