[Django] #25844: django-1.9 fails test under pypy

3 views
Skip to first unread message

Django

unread,
Dec 2, 2015, 2:46:33 AM12/2/15
to django-...@googlegroups.com
#25844: django-1.9 fails test under pypy
-----------------------------------+--------------------
Reporter: jlec | Owner: nobody
Type: Uncategorized | Status: new
Component: Testing framework | Version: 1.9
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------
Testsuite has been run with
{{{pypy tests/runtests.py --settings=test_sqlite -v2}}}

django-1.8 works fine with same setup as cpython does.

{{{
Traceback (most recent call last):
File "<builtin>/app_main.py", line 75, in run_toplevel
File "tests/runtests.py", line 459, in <module>
options.debug_sql, options.parallel)
File "tests/runtests.py", line 276, in django_tests
extra_tests=extra_tests,
File "/var/tmp/portage/dev-
python/django-1.9/work/Django-1.9/django/test/runner.py", line 533, in
run_tests
result = self.run_suite(suite)
File "/var/tmp/portage/dev-
python/django-1.9/work/Django-1.9/django/test/runner.py", line 494, in
run_suite
).run(suite)
File "/usr/lib64/pypy/lib-python/2.7/unittest/runner.py", line 151, in
run
test(result)
File "/usr/lib64/pypy/lib-python/2.7/unittest/suite.py", line 70, in
__call__
return self.run(*args, **kwds)
File "/var/tmp/portage/dev-
python/django-1.9/work/Django-1.9/django/test/runner.py", line 327, in run
subsuite_index, events = test_results.next(timeout=0.1)
File "/usr/lib64/pypy/lib-python/2.7/multiprocessing/pool.py", line 659,
in next
raise value
PicklingError: Can't pickle <class 'app_main.CommandLineError'>: it's not
found as app_main.CommandLineError
* ERROR: dev-python/django-1.9::gentoo failed (test phase):
* Tests fail with pypy
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/25844>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Dec 2, 2015, 8:26:20 AM12/2/15
to django-...@googlegroups.com
#25844: django-1.9 fails test under pypy
-----------------------------------+--------------------------------------

Reporter: jlec | Owner: nobody
Type: Uncategorized | Status: new
Component: Testing framework | Version: 1.9
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by charettes):

* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0


Comment:

Do the tests pass if a single process is used `pypy tests/runtests.py
--settings=test_sqlite -v2 --parallel=1`?

--
Ticket URL: <https://code.djangoproject.com/ticket/25844#comment:1>

Django

unread,
Dec 2, 2015, 11:49:54 AM12/2/15
to django-...@googlegroups.com
#25844: django-1.9 fails test under pypy
-----------------------------------+--------------------------------------
Reporter: jlec | Owner: nobody
Type: Uncategorized | Status: closed

Component: Testing framework | Version: 1.9
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------------------------
Changes (by timgraham):

* status: new => closed
* resolution: => invalid


Comment:

Yes, this error is related to parallel test running. To see the test
failures you can use `--parallel=1` or `pip install tblib`.

There are some actual test failures once you get past the reported error
and I opened [https://groups.google.com/d/topic/django-
developers/abuS8YbVuD0/discussion a thread on the django-developers
mailing list] about it.

--
Ticket URL: <https://code.djangoproject.com/ticket/25844#comment:2>

Reply all
Reply to author
Forward
0 new messages