{{{
FAIL: test_clearsessions_command (sessions_tests.tests.FileSessionTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\projects\django\django\test\utils.py", line 181, in inner
return test_func(*args, **kwargs)
File "C:\projects\django\tests\sessions_tests\tests.py", line 563, in
test_clearsessions_command
self.assertEqual(1, count_sessions())
AssertionError: 1 != 2
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25558>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* status: new => assigned
* owner: nobody => bgianfo
--
Ticket URL: <https://code.djangoproject.com/ticket/25558#comment:1>
Comment (by bgianfo):
Sent pull request here: https://github.com/django/django/pull/5434
Looks to be a timing related issue with the file backend, where we weren't
handling the case where the expiry age is zero, which arguably is also
expired.
--
Ticket URL: <https://code.djangoproject.com/ticket/25558#comment:2>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"a3fffdca2472885a99e1ea9159a685753cd45738" a3fffdc]:
{{{
#!CommitTicketReference repository=""
revision="a3fffdca2472885a99e1ea9159a685753cd45738"
Fixed #25558 -- Fixed nondeterministic test failure on Windows:
test_clearsessions_command.
The test session without an expiration date added in refs #22938 wasn't
always deleted on Windows because get_expiry_age() returns zero and the
file backend didn't consider that an expired session.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/25558#comment:3>