Showing the changes to python/tests/utils.py (1 of 2 files). Show all
Unified · Split
| @@ -19,12 +19,16 @@ def get_default_test_sound(TestCase, rel_dir = 'sounds'): · 18 unmodified lines | ||
| 19 | 19 | else: |
| 20 | 20 | return all_sounds[0] |
| 21 | 21 | |
| 22 | −def get_tmp_sink_name(): | |
| 22 | +def get_tmp_sink_path(): | |
| 23 | 23 | from tempfile import mkstemp |
| 24 | 24 | import os |
| 25 | − fd, name = mkstemp() | |
| 25 | + fd, path = mkstemp() | |
| 26 | 26 | os.close(fd) |
| 27 | − return name | |
| 27 | + return path | |
| 28 | + | |
| 29 | +def del_tmp_sink_path(path): | |
| 30 | + import os | |
| 31 | + os.unlink(path) | |
| 28 | 32 | |
| 29 | 33 | def array_from_yaml_file(filename): |
| 30 | 34 | import yaml |