Edgewall Software

Changes between Version 10 and Version 11 of TracDev/UnitTests


Ignore:
Timestamp:
May 11, 2009, 10:38:16 AM (15 years ago)
Author:
Christian Boos
Comment:

added a #Troubleshooting section

Legend:

Unmodified
Added
Removed
Modified
  • TracDev/UnitTests

    v10 v11  
    3636}}}
    3737
    38 === ImportError: no module named tests ===
    39 If you try to run the tests and you receive
    40 {{{
    41 ImportError: No module named tests
    42 }}}
    43 
    44 It may mean that you have a version of Trac installed in /usr/lib/pythonX.X/site-packages but you are testing a different version installed elsewhere on your machine.
    45 
    46 If so, uninstalling the system version of Trac in /usr/lib/pythonX.X should allow you to run the unit tests, testing your private version.
    47 
    48 Installing your virtual environment with {{{--no-site-packages}}} should eliminate this problem.
    4938== Buildbots ==
    5039
     
    7867If these dependencies are not present, certain tests will be skipped.
    7968
     69== Troubleshooting ==
     70For general advice about Trac debugging, see TracTroubleshooting.
     71
     72=== !ImportError: no module named tests ===
     73If you try to run the tests and you receive
     74{{{
     75ImportError: No module named tests
     76}}}
     77
     78It may mean that you have a version of Trac installed in /usr/lib/pythonX.X/site-packages but you are testing a different version installed elsewhere on your machine.
     79
     80If so, uninstalling the system version of Trac in /usr/lib/pythonX.X should allow you to run the unit tests, testing your private version.
     81
     82Installing your virtual environment with {{{--no-site-packages}}} should eliminate this problem.
     83
    8084----
    8185See also: TracDev/FunctionalTests