Bug 158996 - [PATCH] www/py-django: Make tests work again when using postgresql-psycopg2
Summary: [PATCH] www/py-django: Make tests work again when using postgresql-psycopg2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Li-Wen Hsu
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-17 16:10 UTC by Raphael Kubo da Costa
Modified: 2011-07-22 17:50 UTC (History)
1 user (show)

See Also:


Attachments
py27-django-1.3_1.patch (5.01 KB, patch)
2011-07-17 16:10 UTC, Raphael Kubo da Costa
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Raphael Kubo da Costa 2011-07-17 16:10:10 UTC
This patch is a backport of Django's changeset 16520 [1] to the 1.3 release (or branch, for that matter).

It fixes Django bug 16250 [2], in which psycopg2 2.4.2 made unit tests not work anymore (ie. running `python manage.py test [someapp]' never worked).

The patch could be added only when postgresql support is chose in OPTIONS, however as the original commit upstream changes some other backends (oracle and sqlite3) as well as a base, common class, I thought it was better to always include it.

As the upstream commit message says:

  This can be backwards incompatible in the case of user applications that:
  - Had started using this method
  - Use a third a party database backend

[1] https://code.djangoproject.com/changeset/16520
[2] https://code.djangoproject.com/ticket/16250

Added file(s):
- files/patch-changeset_16520.diff

Port maintainer (lwhsu@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2011-07-17 16:10:26 UTC
Responsible Changed
From-To: freebsd-ports-bugs->lwhsu

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 dfilter service freebsd_committer freebsd_triage 2011-07-22 17:42:36 UTC
lwhsu       2011-07-22 16:42:17 UTC

  FreeBSD ports repository

  Modified files:
    www/py-django        Makefile 
  Added files:
    www/py-django/files  extra-patch-changeset_16520.diff 
  Log:
  - Backport of changeset 16520 to fix unit tests with psycopg2 2.4.2
    This change breaks backward compatibility, so only applying while
    POSTGRESQL option is enabled
  
  PR:             ports/158996
  Submitted by:   Raphael Kubo da Costa <kubito@gmail.com>
  
  Revision  Changes    Path
  1.40      +1 -0      ports/www/py-django/Makefile
  1.1       +84 -0     ports/www/py-django/files/extra-patch-changeset_16520.diff (new)
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 3 Li-Wen Hsu freebsd_committer freebsd_triage 2011-07-22 17:43:59 UTC
State Changed
From-To: open->closed

Committed, with minor changes. Thanks!  This change breaks backward 
compatibility, so only applying while POSTGRESQL option is enabled.