mirror of
				https://github.com/explosion/spaCy.git
				synced 2025-10-31 16:07:41 +03:00 
			
		
		
		
	Move sun.txt to original location and fix path to not break parser tests
This commit is contained in:
		
							parent
							
								
									57919566b8
								
							
						
					
					
						commit
						abb09782f9
					
				|  | @ -67,7 +67,7 @@ Phasellus tincidunt, augue quis porta finibus, massa sapien consectetur augue, n | ||||||
| 
 | 
 | ||||||
| @pytest.mark.parametrize('file_name', ["sun.txt"]) | @pytest.mark.parametrize('file_name', ["sun.txt"]) | ||||||
| def test_tokenizer_handle_text_from_file(tokenizer, file_name): | def test_tokenizer_handle_text_from_file(tokenizer, file_name): | ||||||
|     loc = path.join(path.dirname(__file__), file_name) |     loc = path.join(path.dirname(__file__), '..', file_name) | ||||||
|     text = utf8open(loc).read() |     text = utf8open(loc).read() | ||||||
|     assert len(text) != 0 |     assert len(text) != 0 | ||||||
|     tokens = tokenizer(text) |     tokens = tokenizer(text) | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue
	
	Block a user