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
95536b84
Kaydet (Commit)
95536b84
authored
Eyl 29, 2013
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
rename some more tests to avoid duplicate names (#19123)
üst
c82d9dee
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
test_regrtest.py
Lib/test/test_regrtest.py
+3
-3
No files found.
Lib/test/test_regrtest.py
Dosyayı görüntüle @
95536b84
...
@@ -167,13 +167,13 @@ class ParseArgsTestCase(unittest.TestCase):
...
@@ -167,13 +167,13 @@ class ParseArgsTestCase(unittest.TestCase):
self
.
assertEqual
(
ns
.
testdir
,
os
.
path
.
join
(
support
.
SAVEDCWD
,
'foo'
))
self
.
assertEqual
(
ns
.
testdir
,
os
.
path
.
join
(
support
.
SAVEDCWD
,
'foo'
))
self
.
checkError
([
'--testdir'
],
'expected one argument'
)
self
.
checkError
([
'--testdir'
],
'expected one argument'
)
def
test_
find
leaks
(
self
):
def
test_
run
leaks
(
self
):
for
opt
in
'-L'
,
'--runleaks'
:
for
opt
in
'-L'
,
'--runleaks'
:
with
self
.
subTest
(
opt
=
opt
):
with
self
.
subTest
(
opt
=
opt
):
ns
=
regrtest
.
_parse_args
([
opt
])
ns
=
regrtest
.
_parse_args
([
opt
])
self
.
assertTrue
(
ns
.
runleaks
)
self
.
assertTrue
(
ns
.
runleaks
)
def
test_
find
leaks
(
self
):
def
test_
huntr
leaks
(
self
):
for
opt
in
'-R'
,
'--huntrleaks'
:
for
opt
in
'-R'
,
'--huntrleaks'
:
with
self
.
subTest
(
opt
=
opt
):
with
self
.
subTest
(
opt
=
opt
):
ns
=
regrtest
.
_parse_args
([
opt
,
':'
])
ns
=
regrtest
.
_parse_args
([
opt
,
':'
])
...
@@ -201,7 +201,7 @@ class ParseArgsTestCase(unittest.TestCase):
...
@@ -201,7 +201,7 @@ class ParseArgsTestCase(unittest.TestCase):
self
.
checkError
([
opt
,
'2'
,
'-l'
],
"don't go together"
)
self
.
checkError
([
opt
,
'2'
,
'-l'
],
"don't go together"
)
self
.
checkError
([
opt
,
'2'
,
'-M'
,
'4G'
],
"don't go together"
)
self
.
checkError
([
opt
,
'2'
,
'-M'
,
'4G'
],
"don't go together"
)
def
test_
findleaks
(
self
):
def
test_
coverage
(
self
):
for
opt
in
'-T'
,
'--coverage'
:
for
opt
in
'-T'
,
'--coverage'
:
with
self
.
subTest
(
opt
=
opt
):
with
self
.
subTest
(
opt
=
opt
):
ns
=
regrtest
.
_parse_args
([
opt
])
ns
=
regrtest
.
_parse_args
([
opt
])
...
...
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