#24717: Unit test model_regress.test_pickle.ModelPickleTestCase fails on RHEL6
SCL
-----------------------------------+--------------------------------------
Reporter: ddriddle | Owner: ddriddle
Type: Bug | Status: assigned
Component: Testing framework | Version: 1.8
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
-----------------------------------+--------------------------------------
Comment (by ddriddle):
I have created a branch with a fix for this issue here:
https://github.com/ddriddle/django/tree/ticket_24717.
Please review the commit and tell me if I need to make any modifications.
Here are the notes from the commit:
{{{
Fixed #24717 -- Fixed test failures for RHEL6 SCL
The test test_unpickling_when_appregistrynotready in the package
model_regress.test_pickle fails on RHEL6 systems running python 2.7
from a RedHat Software Collection (SCL) because this test runs an
external python script with a stripped system environment. RedHat SCLs
work by setting a number of system environment variables when these
are
stripped out by this test the python 2.7 interpreter is no longer able
to function properly because it can not find the system libraries
needed
from the SCL. The solution I propose is to use mock to modify the
system
environment directly instead of passing a stripped environment. I
tested
this commit using using python 3.4.3 on Windows 7, and python 2.7 on
Windows 7, Debian 7.8, and RHEL6 with SCLs enabled.
Note that on Unix/Linux systems the code as it was before could also
break on local installs of python to a home directory or /usr/local
for
example since it was not passing variables such as LD_LIBRARY_PATH to
the python script it executes.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/24717#comment:4>
Django <https://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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/066.e0fbce677f96baca90895a06eddd0484%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.