mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-11-04 09:57:26 +03:00 
			
		
		
		
	* Set test file mode to w+t
This commit is contained in:
		
							parent
							
								
									0fe98f358b
								
							
						
					
					
						commit
						1c0356e4c2
					
				| 
						 | 
				
			
			@ -96,7 +96,7 @@ def test_pickle_string_store(sstore):
 | 
			
		|||
 | 
			
		||||
def test_dump_load(sstore):
 | 
			
		||||
    id_ = sstore[u'qqqqq']
 | 
			
		||||
    with tempfile.TemporaryFile('wt') as file_: 
 | 
			
		||||
    with tempfile.TemporaryFile('w+t') as file_: 
 | 
			
		||||
        sstore.dump(file_)
 | 
			
		||||
        file_.seek(0)
 | 
			
		||||
        new_store = StringStore()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user