Django

Code

Show
Ignore:
Timestamp:
10/10/08 17:13:16 (3 months ago)
Author:
jacob
Message:

Yet more file storage testing cleanup for the sake of buildbots; this should be the last of it, I hope.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/modeltests/model_forms/models.py

    r8854 r9226  
    2020    from django.utils.itercompat import sorted 
    2121 
    22 temp_storage = FileSystemStorage(tempfile.gettempdir()) 
     22temp_storage_dir = tempfile.mkdtemp() 
     23temp_storage = FileSystemStorage(temp_storage_dir) 
    2324 
    2425ARTICLE_STATUS = ( 
     
    12521253>>> core.parent 
    12531254<Inventory: Pear> 
     1255 
     1256# Clean up 
     1257>>> import shutil 
     1258>>> shutil.rmtree(temp_storage_dir) 
    12541259"""}