[英]Does tmpdir in pytest create a file only when we write to it?
當我在 pytest 中使用fp = tmpdir.join("hello.txt")
時,pytest 是否實際上在我的臨時目錄中創建了一個文件,或者它僅在我編寫fp.write("hello")
時創建?
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.