Changes between Initial Version and Version 2 of Ticket #22945


Ignore:
Timestamp:
Jul 3, 2014, 1:21:50 AM (10 years ago)
Author:
Aymeric Augustin
Comment:

The problem seems to be that:

  • you have a structure like pacer/tests/tests and both tests directories are on PYTHONPATH, or
  • you have a structure like pacer/tests/tests.py and the the tests directory and the tests.py module are on PYTHONPATH.

Can you check that?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22945 – Description

    initial v2  
    11In any given app, creating a directory called 'tests' with an __init__.py file and a number of test_*.py files which contain TestCases, the testrunner errors when trying to load the 'tests' directory
    22
     3{{{
    34Traceback (most recent call last):
    45  File "/Applications/PyCharm.app/helpers/pycharm/django_test_manage.py", line 127, in <module>
     
    3132    raise ImportError(msg % (mod_name, module_dir, expected_dir))
    3233ImportError: 'tests' module incorrectly imported from '/Users/gene/Python/dd_django/pacer/tests'. Expected '/Users/gene/Python/dd_django/pacer'. Is this module globally installed?
     34}}}
Back to Top