Actually the version check regular expression did only accept regular
version numbers (like 2.1.0) but not development version numbers
(2.2.0dev).
--
Ticket URL: <https://code.djangoproject.com/ticket/22334>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* needs_tests: => 0
* needs_docs: => 0
Comment:
Sent PR https://github.com/django/django/pull/2476
--
Ticket URL: <https://code.djangoproject.com/ticket/22334#comment:1>
* needs_better_patch: 0 => 1
* component: Uncategorized => GIS
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted
Comment:
This seems sensible to me, the only thing that is missing is a test for
the newly supported behaviour. Could you add that to your PR?
--
Ticket URL: <https://code.djangoproject.com/ticket/22334#comment:2>
Comment (by xowap):
Sure I will do.
I looked into it, however I could not find a proper place to put them.
Would you have a recommendation to make on this subject?
--
Ticket URL: <https://code.djangoproject.com/ticket/22334#comment:3>
Comment (by claudep):
Indeed. Feel free to create a new django/contrib/gis/tests/tests.py file.
--
Ticket URL: <https://code.djangoproject.com/ticket/22334#comment:4>
Comment (by anonymous):
Hum, this is embarrassing: while writing the tests, I discovered that I
could not reproduce the bug on the unpatched code. Indeed, there is no $
at the end of the regexp.
I have no idea of how writing this patch turned the DB connection from
"not working" to "working", but it wasn't probably correlated that much.
However, I wrote and pushed some unit tests, in case you want to keep them
anyway.
--
Ticket URL: <https://code.djangoproject.com/ticket/22334#comment:5>
Comment (by Claude Paroz <claude@…>):
In [changeset:"88f1e3d93d8f48a302ff75b1936e471c4a52fff9"]:
{{{
#!CommitTicketReference repository=""
revision="88f1e3d93d8f48a302ff75b1936e471c4a52fff9"
Unit testing Postgis version check
Refs #22334.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22334#comment:6>
* status: new => closed
* resolution: => worksforme
Comment:
Thanks for the tests!
--
Ticket URL: <https://code.djangoproject.com/ticket/22334#comment:7>
Comment (by Claude Paroz <claude@…>):
In [changeset:"e819a3cd622fe9404b1f5ea7891906c4cdabbb12"]:
{{{
#!CommitTicketReference repository=""
revision="e819a3cd622fe9404b1f5ea7891906c4cdabbb12"
Skipped PostGIS version tests when psycopg2 not installed
Refs #22334. Thanks Tim Graham for spotting the issue.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/22334#comment:8>