[Django] #22389: contrib.formtools show errors while running test suite on windows

9 views
Skip to first unread message

Django

unread,
Apr 5, 2014, 2:32:38 PM4/5/14
to django-...@googlegroups.com
#22389: contrib.formtools show errors while running test suite on windows
-----------------------------------+--------------------
Reporter: anubhav9042 | Owner: nobody
Type: Bug | Status: new
Component: Testing framework | Version: master
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-----------------------------------+--------------------
When running the test suite on windows. We get some errors:
One can see the traceback: https://gist.github.com/coder9042/9996028

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

Django

unread,
Apr 5, 2014, 2:33:57 PM4/5/14
to django-...@googlegroups.com
#22389: contrib.formtools show errors while running test suite on windows
-----------------------------------+------------------------------------

Reporter: anubhav9042 | Owner: nobody
Type: Bug | Status: new
Component: contrib.formtools | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------
Changes (by timo):

* needs_better_patch: => 0
* needs_docs: => 0
* component: Testing framework => contrib.formtools
* needs_tests: => 0
* stage: Unreviewed => Accepted


Comment:

I can reproduce these errors.

--
Ticket URL: <https://code.djangoproject.com/ticket/22389#comment:1>

Django

unread,
Apr 9, 2014, 12:53:57 PM4/9/14
to django-...@googlegroups.com
#22389: contrib.formtools show errors while running test suite on windows
-----------------------------------+------------------------------------

Reporter: anubhav9042 | Owner: nobody
Type: Bug | Status: new
Component: contrib.formtools | Version: master
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+------------------------------------

Comment (by anubhav9042):

I tried to find the reason behind the error, tried to fix it but could not
uptil now.
I have some observations, they may/may not be useful:

- I tried to print `type` of file being opened and object created and
found only `UploadedFile` and `InMemoryUploadedFile`
- The path that is shown in the traceback that could not be removed is no
longer there after the suite has run.
- When I just make
[https://github.com/django/django/blob/master/django/core/files/storage.py#L260
#files/storage.pyL260] this into docstring or in other words remove it
then my tests added in the commit
[https://github.com/django/django/commit/fa8b4735287c92b03d23823de8a4e1168d1951d9
fa8b47] fail, which seems quite strange as temporary files do not exist
before deletion as shown by failure of tests.

--
Ticket URL: <https://code.djangoproject.com/ticket/22389#comment:2>

Django

unread,
Jun 13, 2014, 8:31:38 PM6/13/14
to django-...@googlegroups.com
#22389: contrib.formtools show errors while running test suite on windows
-----------------------------------+-------------------------------------
Reporter: anubhav9042 | Owner: nobody
Type: Bug | Status: closed
Component: contrib.formtools | Version: master
Severity: Normal | Resolution: duplicate

Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
-----------------------------------+-------------------------------------
Changes (by timo):

* status: new => closed
* resolution: => duplicate


Comment:

Duplicate of #22772 which has been fixed.

--
Ticket URL: <https://code.djangoproject.com/ticket/22389#comment:3>

Reply all
Reply to author
Forward
0 new messages