MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_snd_filepath_as_bytes

Method test_snd_filepath_as_bytes

Lib/test/test_winsound.py:138–145  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

136 safe_PlaySound(path, winsound.SND_FILENAME | winsound.SND_NODEFAULT)
137
138 def test_snd_filepath_as_bytes(self):
139 fn = support.findfile('pluck-pcm8.wav', subdir='audiodata')
140 self.assertRaises(
141 TypeError,
142 winsound.PlaySound,
143 os_helper.FakePath(os.fsencode(fn)),
144 winsound.SND_FILENAME | winsound.SND_NODEFAULT
145 )
146
147 def test_aliases(self):
148 aliases = [

Callers

nothing calls this directly

Calls 2

fsencodeMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected