diff options
Diffstat (limited to 'test/pyhttpd/env.py')
-rw-r--r-- | test/pyhttpd/env.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/pyhttpd/env.py b/test/pyhttpd/env.py index af856effe4..67d32b7b38 100644 --- a/test/pyhttpd/env.py +++ b/test/pyhttpd/env.py @@ -739,7 +739,8 @@ class HttpdTestEnv: self.curl_parse_headerfile(headerfile, r=r) if r.json: r.response["json"] = r.json - os.remove(headerfile) + if os.path.isfile(headerfile): + os.remove(headerfile) return r def curl_get(self, url, insecure=False, options=None): |