Opened 9 years ago

Closed 9 years ago

#25844 closed Uncategorized (invalid)

django-1.9 fails test under pypy

Reported by: Justin Owned by: nobody
Component: Testing framework Version: 1.9
Severity: Normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Testsuite has been run with
pypy tests/ --settings=test_sqlite -v2

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

Traceback (most recent call last):
  File "<builtin>/", line 75, in run_toplevel
  File "tests/", line 459, in <module>
    options.debug_sql, options.parallel)
  File "tests/", line 276, in django_tests
  File "/var/tmp/portage/dev-python/django-1.9/work/Django-1.9/django/test/", 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/", line 494, in run_suite
  File "/usr/lib64/pypy/lib-python/2.7/unittest/", line 151, in run
  File "/usr/lib64/pypy/lib-python/2.7/unittest/", line 70, in __call__
    return*args, **kwds)
  File "/var/tmp/portage/dev-python/django-1.9/work/Django-1.9/django/test/", line 327, in run
    subsuite_index, events =
  File "/usr/lib64/pypy/lib-python/2.7/multiprocessing/", 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

Change History (2)

comment:1 by Simon Charette, 9 years ago

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

comment:2 by Tim Graham, 9 years ago

Resolution: invalid
Status: newclosed

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 a thread on the django-developers mailing list about it.

Note: See TracTickets for help on using tickets.
Back to Top