Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#14148 closed (fixed)

Django assumes that module.__file__ is an absolute path

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

Description

This isn't always the case, on both PyPy and CPython it seems to happen "randomly" (aka theres a logic to it that I'm not sure of). This causes the tests to fail on PyPy reliably, I can't figure out why they don't fail on CPython, but they don't.

Attachments (1)

django-abspath.diff (772 bytes ) - added by Alex Gaynor 14 years ago.

Download all attachments as: .zip

Change History (3)

by Alex Gaynor, 14 years ago

Attachment: django-abspath.diff added

comment:1 by Russell Keith-Magee, 14 years ago

Resolution: fixed
Status: newclosed

(In [13618]) Fixed #14148 -- Ensure the admin_script tests always use an absolute path; PyPy (and sometimes CPython) return relative paths for file. Thanks to Alex Gaynor for the report and patch.

comment:2 by Russell Keith-Magee, 14 years ago

(In [13619]) [1.2.X] Fixed #14148 -- Ensure the admin_script tests always use an absolute path; PyPy (and sometimes CPython) return relative paths for file. Thanks to Alex Gaynor for the report and patch.

Backport of r13618 from trunk.

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