History

python/tests/utils.py: add get_tmp_sink_name

Paul Brossier committed 12 years ago

Commit 18d8bef1 parent 2eccf221 file · +7 −0Browse files

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

Unified · Split

python/tests/utils.py+7−0
@@ -19,6 +19,13 @@ def get_default_test_sound(TestCase, rel_dir = 'sounds'): · 18 unmodified lines
1919 else:
2020 return all_sounds[0]
2121
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+
2229 def array_from_yaml_file(filename):
2330 import yaml
2431 f = open(filename)

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