Code

Changes between Initial Version and Version 2 of Ticket #16388


Ignore:
Timestamp:
07/05/11 13:43:14 (3 years ago)
Author:
aaugustin
Comment:

Fixed formatting, just to be able to read the bug report — please use the preview before submitting a bug.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16388

    • Property Needs documentation unset
    • Property Needs tests unset
    • Property Patch needs improvement unset
  • Ticket #16388 – Description

    initial v2  
    11enviroment: python2.7 + django1.3 
    22with the steps below: 
    3 1、 django-admin.py startproject myapp 
    4 2、 cd myapp 
    5 3、 manage.py startapp foo 
    6 4、 manage.py test 
     3 
     4- 1 django-admin.py startproject myapp 
     5- 2 cd myapp 
     6- 3 manage.py startapp foo 
     7- 4 manage.py test 
    78 
    89error occurs: 
     10{{{ 
    911File "C:\Python27\lib\site-packages\django\test\simple.py", line 237, in setup_test_environment 
    1012        unittest.installHandler() 
    1113AttributeError:'module' object has no attribute 'installHandler' 
    12  
     14}}} 
    1315 
    1416problem?: 
    1517the file “site-packages\django\utils\unittest” contains the code 
     18{{{ 
    1619try: 
    1720    # check the system path first 
     
    2326    else: 
    2427        ... 
    25  
     28}}} 
    2629but unittest2 features are native in Python 2.7?