#8754: PYTHONPATH not passed through to
regressiontests/admin_scripts/AdminScriptTestCase.run_test()
-----------------------------------------------------------------------+----
Reporter: Richard Davies <[email protected]> |
Owner: nobody
Status: new |
Milestone: 1.1
Component: Testing framework |
Version: SVN
Resolution: |
Keywords:
Stage: Accepted |
Has_patch: 1
Needs_docs: 0 |
Needs_tests: 0
Needs_better_patch: 0 |
-----------------------------------------------------------------------+----
Comment (by russellm):
The reason for removing the full system PYTHONPATH from the test-time
environment was that it was causing test failures that were very hard to
diagnose. The closest I can come to documentation of this reasoning is
[http://code.djangoproject.com/ticket/8047#comment:5 comment 5 of #8047].
However, it's easy to demonstrate that this is still a problem:
1. Create a directory that contains a valid settings.py.
2. Put that directory in your PYTHONPATH.
3. Apply one of the patches from this ticket.
4. Run the admin_scripts tests.
5. Enjoy your brand new 11 failures from 109 tests.
6. Profit.
We're kind of stuck between a rock and a hard place here. On the one hand,
some users (like Richard) will need extra PYTHONPATH settings in order to
make the admin_script test suite pass; on the other hand, some users (I
have a vague recollection that either Malcolm or Karen was one of the
victims here) will accidentally break the test suite by virtue of their
PYTHONPATH.
I'm +0 to including this patch on the grounds that documenting the
required test conditions is a known workaround for those people affected
by PYTHONPATH-based test failures, but there is no workaround if you
actually need the extra PYTHONPATH entries. Any other opinions?
--
Ticket URL: <http://code.djangoproject.com/ticket/8754#comment:9>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---