Showing the changes to python (1 of 1 file). Show all
Unified · Split
| @@ -19,6 +19,13 @@ def get_default_test_sound(TestCase, rel_dir = 'sounds'): · 18 unmodified lines | |||
| 19 | else: | 19 | else: |
| 20 | return all_sounds[0] | 20 | return all_sounds[0] |
| 21 | 21 | ||
| 22 | def get_tmp_sink_name(): | ||
| 23 | from tempfile import mkstemp | ||
| 24 | import os | ||
| 25 | fd, name = mkstemp() | ||
| 26 | os.close(fd) | ||
| 27 | return name | ||
| 28 | |||
| 22 | def array_from_yaml_file(filename): | 29 | def array_from_yaml_file(filename): |
| 23 | import yaml | 30 | import yaml |
| 24 | f = open(filename) | 31 | f = open(filename) |