@@ -310,28 +310,20 @@ def _set_prop(self, value):
310
310
self .assertEqual (wid .basevalue , 1 )
311
311
self .assertEqual (observe_called , 0 )
312
312
313
- # first call, goes in cache
314
- self .assertEqual (wid .prop , 2 )
315
- self .assertEqual (observe_called , 1 )
316
-
317
- # second call, cache used
318
- self .assertEqual (wid .prop , 2 )
319
- self .assertEqual (observe_called , 1 )
320
-
321
313
# change the base value, should trigger an update for the cache
322
314
wid .basevalue = 4
323
- self .assertEqual (observe_called , 2 )
315
+ self .assertEqual (observe_called , 1 )
324
316
325
- # now read the value again, should use the cache too
317
+ # now read the value again, should use the cache
326
318
self .assertEqual (wid .prop , 8 )
327
- self .assertEqual (observe_called , 2 )
319
+ self .assertEqual (observe_called , 1 )
328
320
329
321
# change the prop itself, should trigger an update for the cache
330
322
wid .prop = 4
331
- self .assertEqual (observe_called , 3 )
323
+ self .assertEqual (observe_called , 2 )
332
324
self .assertEqual (wid .basevalue , 2 )
333
325
self .assertEqual (wid .prop , 4 )
334
- self .assertEqual (observe_called , 3 )
326
+ self .assertEqual (observe_called , 2 )
335
327
336
328
def test_bounded_numeric_property (self ):
337
329
from kivy .properties import BoundedNumericProperty
0 commit comments