@@ -245,20 +245,20 @@ def setUp(self):
245
245
linecache .clearcache ()
246
246
self .deleted_file = os_helper .TESTFN + '.1'
247
247
self .modified_file = os_helper .TESTFN + '.2'
248
- self .unchange_file = os_helper .TESTFN + '.3'
248
+ self .unchanged_file = os_helper .TESTFN + '.3'
249
249
self .addCleanup (os_helper .unlink , self .deleted_file )
250
250
self .addCleanup (os_helper .unlink , self .modified_file )
251
- self .addCleanup (os_helper .unlink , self .unchange_file )
251
+ self .addCleanup (os_helper .unlink , self .unchanged_file )
252
252
with open (self .deleted_file , 'w' , encoding = 'utf-8' ) as source :
253
253
source .write ('print("will be deleted")' )
254
254
with open (self .modified_file , 'w' , encoding = 'utf-8' ) as source :
255
255
source .write ('print("will be modified")' )
256
- with open (self .unchange_file , 'w' , encoding = 'utf-8' ) as source :
256
+ with open (self .unchanged_file , 'w' , encoding = 'utf-8' ) as source :
257
257
source .write ('print("unchange")' )
258
258
259
259
linecache .getlines (self .deleted_file )
260
260
linecache .getlines (self .modified_file )
261
- linecache .getlines (self .unchange_file )
261
+ linecache .getlines (self .unchanged_file )
262
262
263
263
os .remove (self .deleted_file )
264
264
with open (self .modified_file , 'w' , encoding = 'utf-8' ) as source :
@@ -279,7 +279,7 @@ def test_checkcache_for_modified_file(self):
279
279
def test_checkcache_with_no_parameter (self ):
280
280
self .assertEqual (3 , len (linecache .cache .keys ()))
281
281
linecache .checkcache ()
282
- self .assertEqual ([self .unchange_file ], list (linecache .cache .keys ()))
282
+ self .assertEqual ([self .unchanged_file ], list (linecache .cache .keys ()))
283
283
284
284
285
285
if __name__ == "__main__" :
0 commit comments