#21147 closed Bug (fixed)
cache.tests.FileBasedCacheTests.test_zero_timeout fails with sqlite on windows
Reported by: | Michael Manfre | Owned by: | nobody |
---|---|---|---|
Component: | Core (Cache system) | Version: | 1.6-beta-1 |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Ready for checkin | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
cache.tests.FileBasedCacheTests.test_zero_timeout
fails with sqlite on windows.
====================================================================== FAIL: test_zero_timeout (cache.tests.FileBasedCacheTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "C:\projects\django\django\tests\cache\tests.py", line 466, in test_zero_timeout self.assertEqual(self.cache.get('key1'), None) AssertionError: u'eggs' != None
Change History (8)
comment:1 by , 11 years ago
Severity: | Normal → Release blocker |
---|---|
Version: | master → 1.6-beta-1 |
comment:2 by , 11 years ago
Triage Stage: | Unreviewed → Accepted |
---|
Regression introduced with changeset 89955cc35f3636684ea6f2a6c9504b35a3050f0f #9595
comment:3 by , 11 years ago
Severity: | Release blocker → Normal |
---|---|
Type: | Uncategorized → Bug |
Not a regression. After manually adding the failing test to 1.5.4, it still fails. Issue is due to precision of {{{time.time()}} and the speed of the system running the tests. On Windows, the precision is ~15 ms.
comment:4 by , 11 years ago
https://github.com/django/django/pull/1668
The newly added get_backend_timeout
is intentionally not documented to avoid it becoming an officially supported part of the API.
comment:5 by , 11 years ago
Has patch: | set |
---|
comment:6 by , 11 years ago
Triage Stage: | Accepted → Ready for checkin |
---|
comment:7 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Worked with Django 1.5. This is a regression.