Code

Opened 5 years ago

Closed 5 years ago

#9947 closed (wontfix)

Add the current django folder to sys.path when you run tests with runtests.py

Reported by: david Owned by: david
Component: Uncategorized Version: 1.0
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Just because I felt very stupid when I report that tests are broken on #django-dev a few months (years?) ago: they were run against another installation of Django.

I don't know if it's worth the case but the fix is an oneliner.

Attachments (1)

patch_django_9947.20090102.diff (329 bytes) - added by david 5 years ago.
Patch against r9692

Download all attachments as: .zip

Change History (3)

Changed 5 years ago by david

Patch against r9692

comment:1 Changed 5 years ago by kmtracey

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset

Hmm, I actually make use of the fact that things work as they do now. Download and apply a patch with tests and verify that the new tests fail as expected when run against old code in a different tree. Not that I haven't been bit by having my pythonpath set incorrectly at times...I'm just not sure I'd like it to always automatically use the code in the same tree as the tests.

comment:2 Changed 5 years ago by jacob

  • Resolution set to wontfix
  • Status changed from new to closed

Like Karen I take advantage of this to run new tests against old code. I think in this rare case the needs of us few maintainers has to override the needs of the many users.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.