mirror of
				https://github.com/clearml/clearml-agent
				synced 2025-06-26 18:16:15 +00:00 
			
		
		
		
	Fix YAML warning
This commit is contained in:
		
							parent
							
								
									98fe162878
								
							
						
					
					
						commit
						b6e04ab982
					
				| @ -35,7 +35,7 @@ def trains_agentyaml(tmpdir): | |||||||
|     def _method(template_file): |     def _method(template_file): | ||||||
|         file = tmpdir.join("trains_agent.yaml") |         file = tmpdir.join("trains_agent.yaml") | ||||||
|         with (PROJECT_ROOT / "tests/templates" / template_file).open() as f: |         with (PROJECT_ROOT / "tests/templates" / template_file).open() as f: | ||||||
|             code = yaml.load(f) |             code = yaml.load(f, Loader=yaml.SafeLoader) | ||||||
|             yield Namespace(code=code, file=file.strpath) |             yield Namespace(code=code, file=file.strpath) | ||||||
|         file.write(yaml.dump(code)) |         file.write(yaml.dump(code)) | ||||||
|     return _method |     return _method | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 allegroai
						allegroai