#11857: TemporaryFile class is missing the closed - attribute
-------------------------------------+-------------------------------------
     Reporter:  andi100              |                    Owner:  anonymous
         Type:  Bug                  |                   Status:  assigned
    Component:  File                 |                  Version:
  uploads/storage                    |               Resolution:
     Severity:  Normal               |             Triage Stage:  Accepted
     Keywords:  TemporaryFile        |      Needs documentation:  0
  closed windows                     |  Patch needs improvement:  0
    Has patch:  1                    |                    UI/UX:  0
  Needs tests:  0                    |
Easy pickings:  1                    |
-------------------------------------+-------------------------------------

Comment (by Christopher Adams <christopher.r.adams@…>):

 - TemporaryFile now minimally mocks the API of the Python standard library
 class tempfile.NamedTemporaryFile to avoid AttributeError exceptions.
 - The symbol django.core.files.NamedTemporaryFile is actually assigned as
 a different class on different operating systems.
 - The bug only occurred if Django is running on Windows, hence why it was
 hard to diagnose.
 - All tests pass with ./runtests.py --settings=test_sqlite

-- 
Ticket URL: <https://code.djangoproject.com/ticket/11857#comment:28>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-updates+unsubscr...@googlegroups.com.
To post to this group, send email to django-updates@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/065.3f582d9c525ef39ed296109da307b8fb%40djangoproject.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to