diff options
author | Greg Ward <gward@python.net> | 2005-03-09 00:55:19 (GMT) |
---|---|---|
committer | Greg Ward <gward@python.net> | 2005-03-09 00:55:19 (GMT) |
commit | 777374e8db9902baa844a82eeefd2ab0d5a3e95b (patch) | |
tree | 13617c1e2297c76d9db69be29fa7f74aa429597c /Lib/test | |
parent | ad80c6bb2afa6d46fc19104127d7b02f8a5e2169 (diff) | |
download | cpython-777374e8db9902baa844a82eeefd2ab0d5a3e95b.zip cpython-777374e8db9902baa844a82eeefd2ab0d5a3e95b.tar.gz cpython-777374e8db9902baa844a82eeefd2ab0d5a3e95b.tar.bz2 |
SF #818006: revert addition of 'closed', 'mode', and 'name' attributes
to oss_audio_device objects.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_ossaudiodev.py | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/Lib/test/test_ossaudiodev.py b/Lib/test/test_ossaudiodev.py index f668eb4..89849e9 100644 --- a/Lib/test/test_ossaudiodev.py +++ b/Lib/test/test_ossaudiodev.py @@ -56,19 +56,6 @@ def play_sound_file(data, rate, ssize, nchannels): dsp.getptr() dsp.fileno() - # Make sure the read-only attributes work. - assert dsp.closed is False, "dsp.closed is not False" - assert dsp.name == "/dev/dsp" - assert dsp.mode == 'w', "bad dsp.mode: %r" % dsp.mode - - # And make sure they're really read-only. - for attr in ('closed', 'name', 'mode'): - try: - setattr(dsp, attr, 42) - raise RuntimeError("dsp.%s not read-only" % attr) - except TypeError: - pass - # set parameters based on .au file headers dsp.setparameters(AFMT_S16_NE, nchannels, rate) t1 = time.time() @@ -145,6 +132,5 @@ def test(): #test_bad_setparameters(dsp) finally: dsp.close() - assert dsp.closed is True, "dsp.closed is not True" test() |