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 |
Description
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
Change History (2)
comment:1 by , 9 years ago
comment:2 by , 9 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
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.
Do the tests pass if a single process is used
pypy tests/runtests.py --settings=test_sqlite -v2 --parallel=1
?