On Thu, Jun 19, 2008 at 10:27 AM, Peter Melvyn <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I wanted to make sure that all unit tests will pass after #3030 fix
> and run Django unit tests on trunk updated to r7703 on Windows, Python
> 2.4 and MySQL 5.0.37.
>
> But I found that some test failes:
>
> 1. If I've run all tests, I get error:
>
> Traceback (most recent call last):
>  File "C:\Python24\Lib\site-packages\django-trunk\tests\runtests.py",
> line 183, in ?
>    django_tests(int(options.verbosity), options.interactive, args)
>  File "C:\Python24\Lib\site-packages\django-trunk\tests\runtests.py",
> line 153, in django_tests
>    failures = run_tests(test_labels, verbosity=verbosity,
> interactive=interactive, extra_tests=extra_tests)
>  File "C:\Python24\Lib\site-packages\django-trunk\django\test\simple.py",
> line 136, in run_tests
>    suite.addTest(build_suite(app))
>  File "C:\Python24\Lib\site-packages\django-trunk\django\test\simple.py",
> line 59, in build_suite
>    test_module = get_tests(app_module)
>  File "C:\Python24\Lib\site-packages\django-trunk\django\test\simple.py",
> line 17, in get_tests
>    test_module = __import__('.'.join(app_path + [TEST_MODULE]), {},
> {}, TEST_MODULE)
>  File 
> "C:\Python24\Lib\site-packages\django-trunk\tests\regressiontests\templates\tests.py",
> line 23, in ?
>    from loaders import *
>  File 
> "C:\Python24\Lib\site-packages\django-trunk\tests\regressiontests\templates\loaders.py",
> line 13, in ?
>    import pkg_resources
> ImportError: No module named pkg_resources
>

AFAICT the failing test is the one trying to execise the Python egg
template loader.

I've found this same problem last week both on a Linux system and on a
Windows one.
The common factor was they were systems where the 'stack' has had just
been installed
Python 2.4 and Python 2.5 respectively). Installing the right
setuptools version solved the
problems.

Maybe a note about this dependency of that particular Django test
suite component could
be added to the "Unit tests" section of the "Contributing to Django"  document?.

Regards,

-- 
 Ramiro Morales

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

Reply via email to