Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 409527 - django-1.4 version bump
Summary: django-1.4 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: https://www.djangoproject.com/weblog/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-24 11:56 UTC by Yu Yuwei
Modified: 2012-04-01 05:30 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
successful test log (build.log,159.19 KB, text/plain)
2012-03-26 14:27 UTC, Yu Yuwei
Details
my emerge --info (emerge-info.txt,6.44 KB, text/plain)
2012-03-26 14:28 UTC, Yu Yuwei
Details
django-1.4.ebuild (django-1.4.ebuild,2.99 KB, text/plain)
2012-03-29 03:53 UTC, Yu Yuwei
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yu Yuwei 2012-03-24 11:56:11 UTC
Django release the 1.4 version on Mar 23, 2012. Please refer to https://docs.djangoproject.com/en/dev/releases/1.4/ for full release note. Wish to see it hit portage ASAP. Thank you.

Reproducible: Always
Comment 1 Patrick Lauer gentoo-dev 2012-03-24 16:56:56 UTC
======================================================================
ERROR: test_staticfiles_dirs (regressiontests.staticfiles_tests.tests.TestServeStaticWithURLHelper)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/tests/regressiontests/staticfiles_tests/tests.py", line 62, in setUp
    with codecs.open(self._nonascii_filepath, 'w', 'utf-8') as f:
  File "/usr/lib64/python2.7/codecs.py", line 881, in open
    file = __builtin__.open(filename, mode, buffering)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u015f' in position 119: ordinal not in range(128)

======================================================================
ERROR: test_staticfiles_dirs_priority (regressiontests.staticfiles_tests.tests.TestServeStaticWithURLHelper)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/tests/regressiontests/staticfiles_tests/tests.py", line 62, in setUp
    with codecs.open(self._nonascii_filepath, 'w', 'utf-8') as f:
  File "/usr/lib64/python2.7/codecs.py", line 881, in open
    file = __builtin__.open(filename, mode, buffering)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u015f' in position 119: ordinal not in range(128)

======================================================================
ERROR: test_staticfiles_dirs_subdir (regressiontests.staticfiles_tests.tests.TestServeStaticWithURLHelper)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/tests/regressiontests/staticfiles_tests/tests.py", line 62, in setUp
    with codecs.open(self._nonascii_filepath, 'w', 'utf-8') as f:
  File "/usr/lib64/python2.7/codecs.py", line 881, in open
    file = __builtin__.open(filename, mode, buffering)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u015f' in position 119: ordinal not in range(128)

======================================================================
ERROR: test_template_tag (regressiontests.staticfiles_tests.tests.TestTemplateTag)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/tests/regressiontests/staticfiles_tests/tests.py", line 62, in setUp
    with codecs.open(self._nonascii_filepath, 'w', 'utf-8') as f:
  File "/usr/lib64/python2.7/codecs.py", line 881, in open
    file = __builtin__.open(filename, mode, buffering)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u015f' in position 119: ordinal not in range(128)

======================================================================
ERROR: test_unicode_filename (regressiontests.forms.tests.models.FormsModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/tests/regressiontests/forms/tests/models.py", line 112, in test_unicode_filename
    m = FileModel.objects.create(file=f.cleaned_data['file1'])
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/manager.py", line 137, in create
    return self.get_query_set().create(**kwargs)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/query.py", line 377, in create
    obj.save(force_insert=True, using=self.db)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/base.py", line 463, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/base.py", line 551, in save_base
    result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/manager.py", line 203, in _insert
    return insert_query(self.model, objs, fields, **kwargs)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/query.py", line 1576, in insert_query
    return query.get_compiler(using=using).execute_sql(return_id)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/sql/compiler.py", line 909, in execute_sql
    for sql, params in self.as_sql():
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/sql/compiler.py", line 872, in as_sql
    for obj in self.query.objs
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/fields/files.py", line 249, in pre_save
    file.save(file.name, file, save=False)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/fields/files.py", line 86, in save
    self.name = self.storage.save(name, content)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/core/files/storage.py", line 44, in save
    name = self.get_available_name(name)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/core/files/storage.py", line 70, in get_available_name
    while self.exists(name):
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/core/files/storage.py", line 230, in exists
    return os.path.exists(self.path(name))
  File "/usr/lib64/python2.7/genericpath.py", line 18, in exists
    os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 74-82: ordinal not in range(128)

======================================================================
ERROR: test_unicode_file_name (regressiontests.file_uploads.tests.FileUploadTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/tests/regressiontests/file_uploads/tests.py", line 97, in test_unicode_file_name
    response = self.client.post('/file_uploads/unicode_name/', post_data)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/test/client.py", line 449, in post
    response = super(Client, self).post(path, data=data, content_type=content_type, **extra)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/test/client.py", line 262, in post
    return self.request(**r)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/core/handlers/base.py", line 111, in get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/tests/regressiontests/file_uploads/views.py", line 69, in file_upload_unicode_name
    obj = FileModel.objects.create(testfile=uni_named_file)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/manager.py", line 137, in create
    return self.get_query_set().create(**kwargs)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/query.py", line 377, in create
    obj.save(force_insert=True, using=self.db)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/base.py", line 463, in save
    self.save_base(using=using, force_insert=force_insert, force_update=force_update)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/base.py", line 551, in save_base
    result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/manager.py", line 203, in _insert
    return insert_query(self.model, objs, fields, **kwargs)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/query.py", line 1576, in insert_query
    return query.get_compiler(using=using).execute_sql(return_id)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/sql/compiler.py", line 909, in execute_sql
    for sql, params in self.as_sql():
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/sql/compiler.py", line 872, in as_sql
    for obj in self.query.objs
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/fields/files.py", line 249, in pre_save
    file.save(file.name, file, save=False)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/db/models/fields/files.py", line 86, in save
    self.name = self.storage.save(name, content)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/core/files/storage.py", line 44, in save
    name = self.get_available_name(name)
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/core/files/storage.py", line 70, in get_available_name
    while self.exists(name):
  File "/var/tmp/portage/dev-python/django-1.4/work/Django-1.4/django/core/files/storage.py", line 230, in exists
    return os.path.exists(self.path(name))
  File "/usr/lib64/python2.7/genericpath.py", line 18, in exists
    os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 82-83: ordinal not in range(128)

----------------------------------------------------------------------
Ran 4714 tests in 995.509s

FAILED (errors=69, skipped=98, expected failures=2)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
 * ERROR: dev-python/django-1.4 failed (test phase):
 *   Testing failed with CPython 2.7 in testing() function


tests barf all over the place (and SRC_URI got a random randomization)
Comment 2 Yu Yuwei 2012-03-26 14:24:32 UTC
Hi Lauer,

I got success test results:

Ran 4697 tests in 759.896s

OK (skipped=101, expected failures=2)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...

and I would attach my build.log and emerge --info soon
Comment 3 Yu Yuwei 2012-03-26 14:27:21 UTC
Created attachment 306729 [details]
successful test log

I ran "ebuild djang-1.4.ebuild test" and get this result.
Comment 4 Yu Yuwei 2012-03-26 14:28:15 UTC
Created attachment 306731 [details]
my emerge --info

My environment.
Comment 5 Yu Yuwei 2012-03-26 14:30:05 UTC
And I have python-2.7.2-r3 and python-3.2.2-r1 installed.
Comment 6 Matt Summers (RETIRED) gentoo-dev 2012-03-27 01:31:11 UTC
Patrick, what is your LANG?
Comment 7 Yu Yuwei 2012-03-29 03:53:27 UTC
Created attachment 307045 [details]
django-1.4.ebuild

This is the ebuild for django-1.4 used in my local overlay
Comment 8 Matt Summers (RETIRED) gentoo-dev 2012-03-30 19:08:18 UTC
Patrick, I cannot reproduce your errors with LANG=en_US.utf8

django $ PYTHONPATH="." python tests/runtests.py --settings=test_sqlite -v3

Ran 4702 tests in 992.887s
OK (skipped=103, expected failures=2)
Comment 9 Dirkjan Ochtman (RETIRED) gentoo-dev 2012-03-30 20:36:31 UTC
Can someone please file an upstream bug about fixing the test suite for this?
Comment 10 Patrick Lauer gentoo-dev 2012-04-01 05:30:06 UTC
+  01 Apr 2012; Patrick Lauer <patrick@gentoo.org> +django-1.4.ebuild:
+  Bump for #409527

Switching to a UTF locale helps :)