Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
cpython
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
Batuhan Osman TASKAYA
cpython
Commits
e7445de2
Kaydet (Commit)
e7445de2
authored
Agu 24, 2007
tarafından
Georg Brandl
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Remove output file for test_ossaudiodev, also properly close the dsp object.
üst
0c6a438a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
5 deletions
+3
-5
test_ossaudiodev
Lib/test/output/test_ossaudiodev
+0
-2
test_ossaudiodev.py
Lib/test/test_ossaudiodev.py
+3
-3
No files found.
Lib/test/output/test_ossaudiodev
deleted
100644 → 0
Dosyayı görüntüle @
0c6a438a
test_ossaudiodev
playing test sound file (expected running time: 2.93 sec)
Lib/test/test_ossaudiodev.py
Dosyayı görüntüle @
e7445de2
...
...
@@ -76,8 +76,7 @@ class OSSAudioDevTests(unittest.TestCase):
# set parameters based on .au file headers
dsp
.
setparameters
(
AFMT_S16_NE
,
nchannels
,
rate
)
print
(
"playing test sound file (expected running time:
%.2
f sec)"
%
expected_time
)
self
.
assertEquals
(
"
%.2
f"
%
expected_time
,
"2.93"
)
t1
=
time
.
time
()
dsp
.
write
(
data
)
dsp
.
close
()
...
...
@@ -119,7 +118,6 @@ class OSSAudioDevTests(unittest.TestCase):
"setparameters
%
r: returned
%
r"
%
(
config
,
result
))
def
set_bad_parameters
(
self
,
dsp
):
# Now try some configurations that are presumably bogus: eg. 300
# channels currently exceeds even Hollywood's ambitions, and
# negative sampling rate is utter nonsense. setparameters() should
...
...
@@ -168,6 +166,8 @@ def test_main():
if
msg
[
0
]
in
(
errno
.
EACCES
,
errno
.
ENOENT
,
errno
.
ENODEV
,
errno
.
EBUSY
):
raise
TestSkipped
(
msg
)
raise
finally
:
dsp
.
close
()
test_support
.
run_unittest
(
__name__
)
if
__name__
==
"__main__"
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment