#13229: List of Finnish municipalities updated for the year 2010 (fi_municipalities.py) -------------------------------------------------+-------------------------- Reporter: Haprog | Owner: nobody Status: reopened | Milestone: 1.2 Component: django.contrib.localflavor | Version: SVN Resolution: | Keywords: fi,finnish,municipalities Stage: Accepted | Has_patch: 1 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------------------+-------------------------- Changes (by kmtracey):
* status: closed => reopened * resolution: fixed => Comment: There's apparently a test that relies on the data in this list of Finnish municipalities, since r12958 has triggered a test failure: {{{ FAIL: Doctest: regressiontests.forms.tests.__test__.localflavor_fi_tests ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/buildbot/slave-py2.4/parts/ubuntu9.10-py2.4-sqlite/django- trunk_ubuntu9.10-py2.4-sqlite/build/django/test/_doctest.py", line 2180, in runTest raise self.failureException(self.format_failure(new.getvalue())) AssertionError: Failed doctest test for regressiontests.forms.tests.__test__.localflavor_fi_tests File "/home/buildbot/slave-py2.4/parts/ubuntu9.10-py2.4-sqlite/django- trunk_ubuntu9.10-py2.4-sqlite/build/tests/regressiontests/forms/tests.py", line unknown line number, in localflavor_fi_tests ---------------------------------------------------------------------- File "/home/buildbot/slave-py2.4/parts/ubuntu9.10-py2.4-sqlite/django- trunk_ubuntu9.10-py2.4-sqlite/build/tests/regressiontests/forms/tests.py", line ?, in regressiontests.forms.tests.__test__.localflavor_fi_tests Failed example: unicode(w.render('municipalities', 'turku')) Expected: u'<select name="municipalities">\n<option value="akaa">Akaa</option>\n<option value="alaharma">Alah\xe4rm\xe4</option> [truncated due to length, you get the idea] Got: u'<select name="municipalities">\n<option value="akaa">Akaa</option>\n<option value="alajarvi">Alaj\xe4rvi</option> [truncated due to length] ---------------------------------------------------------------------- Ran 1570 tests in 501.680s FAILED (failures=1) }}} I'm a little puzzled by the fact that this updated list deletes a bunch of items. Doesn't that have backwards-incompatibility implications for anyone who has been using the old list and may have data from now-deleted items saved in their DB? -- Ticket URL: <http://code.djangoproject.com/ticket/13229#comment:3> Django <http://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 post to this group, send email to django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.