History

[tests] [win] add missing import warnings

Paul Brossier committed 8 years ago

Commit a3f26951 parent 94c7ab31 file · +1 −0Browse files

Showing the changes to python (1 of 1 file). Show all

Unified · Split

python/tests/utils.py+1−0
@@ -36,6 +36,7 @@ def del_tmp_sink_path(path): · 35 unmodified lines
36 os.unlink(path)36 os.unlink(path)
37 except WindowsError as e:37 except WindowsError as e:
38 # removing the temporary directory sometimes fails on windows38 # removing the temporary directory sometimes fails on windows
39 import warnings
39 errmsg = "failed deleting temporary file {:s} ({:s})"40 errmsg = "failed deleting temporary file {:s} ({:s})"
40 warnings.warn(UserWarning(errmsg.format(path, repr(e))))41 warnings.warn(UserWarning(errmsg.format(path, repr(e))))
41 42

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t