[Python-checkins] python/dist/src/Lib/test test_ossaudiodev.py, 1.8.10.1, 1.8.10.2

gward at users.sourceforge.net gward at users.sourceforge.net
Wed Mar 9 01:55:21 CET 2005


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24519/Lib/test
Modified Files:
 Tag: release24-maint
	test_ossaudiodev.py 
Log Message:
SF #818006: revert addition of 'closed', 'mode', and 'name' attributes
to oss_audio_device objects.
Index: test_ossaudiodev.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_ossaudiodev.py,v
retrieving revision 1.8.10.1
retrieving revision 1.8.10.2
diff -u -d -r1.8.10.1 -r1.8.10.2
--- test_ossaudiodev.py	7 Mar 2005 01:32:02 -0000	1.8.10.1
+++ test_ossaudiodev.py	9 Mar 2005 00:55:18 -0000	1.8.10.2
@@ -56,19 +56,6 @@
 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 @@
 #test_bad_setparameters(dsp)
 finally:
 dsp.close()
- assert dsp.closed is True, "dsp.closed is not True"
 
 test()


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /