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
72a01b29
Kaydet (Commit)
72a01b29
authored
Kas 28, 2013
tarafından
Zachary Ware
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #19595: Re-enable a long-disabled test in test_winsound
üst
26d936a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
12 deletions
+10
-12
test_winsound.py
Lib/test/test_winsound.py
+8
-12
NEWS
Misc/NEWS
+2
-0
No files found.
Lib/test/test_winsound.py
Dosyayı görüntüle @
72a01b29
...
@@ -159,18 +159,14 @@ class PlaySoundTest(unittest.TestCase):
...
@@ -159,18 +159,14 @@ class PlaySoundTest(unittest.TestCase):
)
)
def
test_alias_fallback
(
self
):
def
test_alias_fallback
(
self
):
# This test can't be expected to work on all systems. The MS
if
_have_soundcard
():
# PlaySound() docs say:
winsound
.
PlaySound
(
'!"$
%
&/(#+*'
,
winsound
.
SND_ALIAS
)
#
else
:
# If it cannot find the specified sound, PlaySound uses the
self
.
assertRaises
(
# default system event sound entry instead. If the function
RuntimeError
,
# can find neither the system default entry nor the default
winsound
.
PlaySound
,
# sound, it makes no sound and returns FALSE.
'!"$
%
&/(#+*'
,
winsound
.
SND_ALIAS
#
)
# It's known to return FALSE on some real systems.
# winsound.PlaySound('!"$%&/(#+*', winsound.SND_ALIAS)
return
def
test_alias_nofallback
(
self
):
def
test_alias_nofallback
(
self
):
if
_have_soundcard
():
if
_have_soundcard
():
...
...
Misc/NEWS
Dosyayı görüntüle @
72a01b29
...
@@ -53,6 +53,8 @@ Library
...
@@ -53,6 +53,8 @@ Library
Tests
Tests
-----
-----
-
Issue
#
19595
:
Re
-
enabled
a
long
-
disabled
test
in
test_winsound
.
-
Issue
#
19588
:
Fixed
tests
in
test_random
that
were
silently
skipped
most
-
Issue
#
19588
:
Fixed
tests
in
test_random
that
were
silently
skipped
most
of
the
time
.
Patch
by
Julian
Gindi
.
of
the
time
.
Patch
by
Julian
Gindi
.
...
...
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