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
bb11c3c9
Unverified
Kaydet (Commit)
bb11c3c9
authored
Kas 22, 2017
tarafından
Victor Stinner
Kaydeden (comit)
GitHub
Kas 22, 2017
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-31324: Fix test.support.set_match_tests(None) (#4505)
üst
803ddd8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
__init__.py
Lib/test/support/__init__.py
+2
-0
test_support.py
Lib/test/test_support.py
+5
-0
No files found.
Lib/test/support/__init__.py
Dosyayı görüntüle @
bb11c3c9
...
@@ -1931,6 +1931,8 @@ def set_match_tests(patterns):
...
@@ -1931,6 +1931,8 @@ def set_match_tests(patterns):
if
not
patterns
:
if
not
patterns
:
func
=
None
func
=
None
# set_match_tests(None) behaves as set_match_tests(())
patterns
=
()
elif
all
(
map
(
_is_full_match_test
,
patterns
)):
elif
all
(
map
(
_is_full_match_test
,
patterns
)):
# Simple case: all patterns are full test identifier.
# Simple case: all patterns are full test identifier.
# The test.bisect utility only uses such full test identifiers.
# The test.bisect utility only uses such full test identifiers.
...
...
Lib/test/test_support.py
Dosyayı görüntüle @
bb11c3c9
...
@@ -500,6 +500,11 @@ class TestSupport(unittest.TestCase):
...
@@ -500,6 +500,11 @@ class TestSupport(unittest.TestCase):
self
.
assertTrue
(
support
.
match_test
(
test_access
))
self
.
assertTrue
(
support
.
match_test
(
test_access
))
self
.
assertTrue
(
support
.
match_test
(
test_chdir
))
self
.
assertTrue
(
support
.
match_test
(
test_chdir
))
# match all using None
support
.
set_match_tests
(
None
)
self
.
assertTrue
(
support
.
match_test
(
test_access
))
self
.
assertTrue
(
support
.
match_test
(
test_chdir
))
# match the full test identifier
# match the full test identifier
support
.
set_match_tests
([
test_access
.
id
()])
support
.
set_match_tests
([
test_access
.
id
()])
self
.
assertTrue
(
support
.
match_test
(
test_access
))
self
.
assertTrue
(
support
.
match_test
(
test_access
))
...
...
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