Code

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#14250 closed (fixed)

FileBasedCacheTests.test_cull test failure

Reported by: lukeplant Owned by: nobody
Component: Core (Cache system) Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation:
Needs tests: Patch needs improvement:
Easy pickings: UI/UX:

Description

Since r13678, I'm getting this test failure:

======================================================================                                
FAIL: test_cull (regressiontests.cache.tests.FileBasedCacheTests)                                     
----------------------------------------------------------------------                                
Traceback (most recent call last):                                                                    
  File "/home/luke/devel/django/trunk/tests/regressiontests/cache/tests.py", line 430, in test_cull   
    self.perform_cull_test(50, 28)                                                                    
  File "/home/luke/devel/django/trunk/tests/regressiontests/cache/tests.py", line 367, in perform_cull_test                                                                                                 
    self.assertEqual(count, final_count)                                                              
AssertionError: 27 != 28                                                                              

This happens whether I run just the single test or many others. This does not appear to be causing test failures for anyone else (like Russell who checked it in, or the buildbots), but it is happening on a clean checkout on my Ubuntu Lucid box, Python 2.4/2.5/2.6, and on a CentOS 5.5 box, Python 2.4.

I don't have access to a box where the test passes to see what is different, and I cannot track down any source of non-deterministic behaviour, so this has me stumped for now.

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by lukeplant

  • Resolution set to fixed
  • Status changed from new to closed

(In [13705]) Fixed #14250 - FileBasedCacheTests.test_cull test failure

This patch makes the cull behaviour (which files deleted and how many
deleted) deterministic.

comment:2 Changed 4 years ago by lukeplant

(In [13706]) [1.2.X] Fixed #14250 - FileBasedCacheTests.test_cull test failure

This patch makes the cull behaviour (which files deleted and how many
deleted) deterministic.

Backport of [13705] from trunk.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.