mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	I left some debugging junk in here; removed it. Also replaced a few
more instances of the bizarre "del f; del m" ways to spell .close() (del won't do any good here under Jython, etc).
This commit is contained in:
		
							parent
							
								
									17d67f07cd
								
							
						
					
					
						commit
						1b5112ac97
					
				
					 1 changed files with 3 additions and 2 deletions
				
			
		|  | @ -221,11 +221,12 @@ def test_both(): | |||
|         verify(m[:] == 'c'*mapsize, | ||||
|                "Write-through memory map memory not updated properly.") | ||||
|         m.flush() | ||||
|         del m, f | ||||
|         m.close() | ||||
|         f.close() | ||||
|         f = open(TESTFN, 'rb') | ||||
|         stuff = f.read() | ||||
|         f.close() | ||||
|         verify(open(TESTFN, 'rb').read() == 'c'*mapsize, | ||||
|         verify(stuff == 'c'*mapsize, | ||||
|                "Write-through memory map data file not updated properly.") | ||||
| 
 | ||||
|         print "  Opening mmap with access=ACCESS_COPY" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Tim Peters
						Tim Peters