@@ -75,7 +75,7 @@ def test_typed(self):
7575 self .assertEqual (Cached .get_typed (0 ), 1 )
7676 self .assertEqual (len (w ), 2 )
7777 self .assertIs (w [0 ].category , DeprecationWarning )
78- self .assertIs (w [0 ].category , DeprecationWarning )
78+ self .assertIs (w [1 ].category , DeprecationWarning )
7979
8080 with warnings .catch_warnings ():
8181 warnings .simplefilter ("ignore" )
@@ -99,7 +99,7 @@ def test_locked(self):
9999 self .assertEqual (Cached .get_locked (0 ), 1 )
100100 self .assertEqual (len (w ), 2 )
101101 self .assertIs (w [0 ].category , DeprecationWarning )
102- self .assertIs (w [0 ].category , DeprecationWarning )
102+ self .assertIs (w [1 ].category , DeprecationWarning )
103103
104104 def test_condition (self ):
105105 Cached .cache = LRUCache (2 )
@@ -112,7 +112,7 @@ def test_condition(self):
112112 self .assertEqual (Cached .get_condition (0 ), 1 )
113113 self .assertEqual (len (w ), 2 )
114114 self .assertIs (w [0 ].category , DeprecationWarning )
115- self .assertIs (w [0 ].category , DeprecationWarning )
115+ self .assertIs (w [1 ].category , DeprecationWarning )
116116
117117 def test_clear (self ):
118118 Cached .cache = LRUCache (2 )
0 commit comments