hello I'm trying to run the tests for trunk according to the instructions on
http://docs.djangoproject.com/en/dev/internals/contributing/#running-the-unit-testsI've
also installed the packages mentioned there but I get one error and
one
failure and since it's the first time I'm doing this I'm not sure if I'm not
"doing it right" or if the current revision doesn't pass, can someone help
me? thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en.

sa...@zweckdev:~/django-trunk/tests
$ PYTHONPATH=~/django-trunk ./runtests.py --settings=test_sqlite
======================================================================
ERROR: test_unicode_file_name 
(regressiontests.file_uploads.tests.FileUploadTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/samus/django-trunk/tests/regressiontests/file_uploads/tests.py", 
line 69, in test_unicode_file_name
    response = self.client.post('/file_uploads/unicode_name/', post_data)
  File "/home/samus/django-trunk/django/test/client.py", line 322, in post
    response = self.request(**r)
  File "/home/samus/django-trunk/django/core/handlers/base.py", line 100, in 
get_response
    response = callback(request, *callback_args, **callback_kwargs)
  File "/home/samus/django-trunk/tests/regressiontests/file_uploads/views.py", 
line 64, in file_upload_unicode_name
    obj = FileModel.objects.create(testfile=uni_named_file)
  File "/home/samus/django-trunk/django/db/models/manager.py", line 138, in 
create
    return self.get_query_set().create(**kwargs)
  File "/home/samus/django-trunk/django/db/models/query.py", line 352, in create
    obj.save(force_insert=True, using=self.db)
  File "/home/samus/django-trunk/django/db/models/base.py", line 435, in save
    self.save_base(using=using, force_insert=force_insert, 
force_update=force_update)
  File "/home/samus/django-trunk/django/db/models/base.py", line 518, in 
save_base
    for f in meta.local_fields if not isinstance(f, AutoField)]
  File "/home/samus/django-trunk/django/db/models/fields/files.py", line 255, 
in pre_save
    file.save(file.name, file, save=False)
  File "/home/samus/django-trunk/django/db/models/fields/files.py", line 92, in 
save
    self.name = self.storage.save(name, content)
  File "/home/samus/django-trunk/django/core/files/storage.py", line 47, in save
    name = self.get_available_name(name)
  File "/home/samus/django-trunk/django/core/files/storage.py", line 73, in 
get_available_name
    while self.exists(name):
  File "/home/samus/django-trunk/django/core/files/storage.py", line 196, in 
exists
    return os.path.exists(self.path(name))
  File "/usr/lib/python2.6/genericpath.py", line 18, in exists
    st = os.stat(path)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 43-44: 
ordinal not in range(128)

======================================================================
FAIL: Doctest: regressiontests.forms.models.__test__.API_TESTS
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/samus/django-trunk/django/test/_doctest.py", line 2180, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for 
regressiontests.forms.models.__test__.API_TESTS
  File "/home/samus/django-trunk/tests/regressiontests/forms/models.py", line 
unknown line number, in API_TESTS

----------------------------------------------------------------------
File "/home/samus/django-trunk/tests/regressiontests/forms/models.py", line ?, 
in regressiontests.forms.models.__test__.API_TESTS
Failed example:
    m = FileModel.objects.create(file=f.cleaned_data['file1'])
Exception raised:
    Traceback (most recent call last):
      File "/home/samus/django-trunk/django/test/_doctest.py", line 1267, in 
__run
        compileflags, 1) in test.globs
      File "<doctest regressiontests.forms.models.__test__.API_TESTS[5]>", line 
1, in <module>
        m = FileModel.objects.create(file=f.cleaned_data['file1'])
      File "/home/samus/django-trunk/django/db/models/manager.py", line 138, in 
create
        return self.get_query_set().create(**kwargs)
      File "/home/samus/django-trunk/django/db/models/query.py", line 352, in 
create
        obj.save(force_insert=True, using=self.db)
      File "/home/samus/django-trunk/django/db/models/base.py", line 435, in 
save
        self.save_base(using=using, force_insert=force_insert, 
force_update=force_update)
      File "/home/samus/django-trunk/django/db/models/base.py", line 518, in 
save_base
        for f in meta.local_fields if not isinstance(f, AutoField)]
      File "/home/samus/django-trunk/django/db/models/fields/files.py", line 
255, in pre_save
        file.save(file.name, file, save=False)
      File "/home/samus/django-trunk/django/db/models/fields/files.py", line 
92, in save
        self.name = self.storage.save(name, content)
      File "/home/samus/django-trunk/django/core/files/storage.py", line 47, in 
save
        name = self.get_available_name(name)
      File "/home/samus/django-trunk/django/core/files/storage.py", line 73, in 
get_available_name
        while self.exists(name):
      File "/home/samus/django-trunk/django/core/files/storage.py", line 196, 
in exists
        return os.path.exists(self.path(name))
      File "/usr/lib/python2.6/genericpath.py", line 18, in exists
        st = os.stat(path)
    UnicodeEncodeError: 'ascii' codec can't encode characters in position 
21-29: ordinal not in range(128)
----------------------------------------------------------------------
File "/home/samus/django-trunk/tests/regressiontests/forms/models.py", line ?, 
in regressiontests.forms.models.__test__.API_TESTS
Failed example:
    m.delete()
Exception raised:
    Traceback (most recent call last):
      File "/home/samus/django-trunk/django/test/_doctest.py", line 1267, in 
__run
        compileflags, 1) in test.globs
      File "<doctest regressiontests.forms.models.__test__.API_TESTS[6]>", line 
1, in <module>
        m.delete()
    NameError: name 'm' is not defined


----------------------------------------------------------------------
Ran 1720 tests in 194.562s

FAILED (failures=1, errors=1)

sa...@zweckdev:~/django-trunk/tests
$ svn info
Path: .
URL: http://code.djangoproject.com/svn/django/trunk/tests
Repository Root: http://code.djangoproject.com/svn
Repository UUID: bcc190cf-cafb-0310-a4f2-bffc1f526a37
Revision: 13362
Node Kind: directory
Schedule: normal
Last Changed Author: russellm
Last Changed Rev: 13348
Last Changed Date: 2010-06-10 11:45:29 +0000 (Thu, 10 Jun 2010)

Reply via email to