ref: a3f26953f1fad24e92d401909664e38fe0a7cf67
parent: 94c7ab3edca3314c7221e01d6b5222735d7cf10a
author: Paul Brossier <piem@piem.org>
date: Fri Nov 2 14:33:45 EDT 2018
[tests] [win] add missing import warnings
--- a/python/tests/utils.py
+++ b/python/tests/utils.py
@@ -36,6 +36,7 @@
os.unlink(path)
except WindowsError as e:
# removing the temporary directory sometimes fails on windows
+ import warnings
errmsg = "failed deleting temporary file {:s} ({:s})"
warnings.warn(UserWarning(errmsg.format(path, repr(e))))