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
68ee0128
Kaydet (Commit)
68ee0128
authored
Agu 16, 2002
tarafından
Neal Norwitz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Drop the number of test files to 100 for all the tests
üst
192690e2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
test_tempfile.py
Lib/test/test_tempfile.py
+8
-4
No files found.
Lib/test/test_tempfile.py
Dosyayı görüntüle @
68ee0128
...
@@ -18,6 +18,10 @@ else:
...
@@ -18,6 +18,10 @@ else:
has_textmode
=
(
tempfile
.
_text_openflags
!=
tempfile
.
_bin_openflags
)
has_textmode
=
(
tempfile
.
_text_openflags
!=
tempfile
.
_bin_openflags
)
# TEST_FILES may need to be tweaked for systems depending on the maximum
# number of files that can be opened at one time (see ulimit -n)
TEST_FILES
=
100
# This is organized as one test for each chunk of code in tempfile.py,
# This is organized as one test for each chunk of code in tempfile.py,
# in order of their appearance in the file. Testing which requires
# in order of their appearance in the file. Testing which requires
# threads is not done here.
# threads is not done here.
...
@@ -156,7 +160,7 @@ class test__RandomNameSequence(TC):
...
@@ -156,7 +160,7 @@ class test__RandomNameSequence(TC):
dict
=
{}
dict
=
{}
r
=
self
.
r
r
=
self
.
r
for
i
in
xrange
(
100
):
for
i
in
xrange
(
TEST_FILES
):
s
=
r
.
next
()
s
=
r
.
next
()
self
.
nameCheck
(
s
,
''
,
''
,
''
)
self
.
nameCheck
(
s
,
''
,
''
,
''
)
self
.
failIf
(
s
in
dict
)
self
.
failIf
(
s
in
dict
)
...
@@ -290,7 +294,7 @@ class test__mkstemp_inner(TC):
...
@@ -290,7 +294,7 @@ class test__mkstemp_inner(TC):
def
test_basic_many
(
self
):
def
test_basic_many
(
self
):
"""_mkstemp_inner can create many files (stochastic)"""
"""_mkstemp_inner can create many files (stochastic)"""
extant
=
range
(
1000
)
extant
=
range
(
TEST_FILES
)
for
i
in
extant
:
for
i
in
extant
:
extant
[
i
]
=
self
.
do_create
(
pre
=
"aa"
)
extant
[
i
]
=
self
.
do_create
(
pre
=
"aa"
)
...
@@ -494,7 +498,7 @@ class test_mkdtemp(TC):
...
@@ -494,7 +498,7 @@ class test_mkdtemp(TC):
def
test_basic_many
(
self
):
def
test_basic_many
(
self
):
"""mkdtemp can create many directories (stochastic)"""
"""mkdtemp can create many directories (stochastic)"""
extant
=
range
(
1000
)
extant
=
range
(
TEST_FILES
)
try
:
try
:
for
i
in
extant
:
for
i
in
extant
:
extant
[
i
]
=
self
.
do_create
(
pre
=
"aa"
)
extant
[
i
]
=
self
.
do_create
(
pre
=
"aa"
)
...
@@ -582,7 +586,7 @@ class test_mktemp(TC):
...
@@ -582,7 +586,7 @@ class test_mktemp(TC):
def
test_many
(
self
):
def
test_many
(
self
):
"""mktemp can choose many usable file names (stochastic)"""
"""mktemp can choose many usable file names (stochastic)"""
extant
=
range
(
1000
)
extant
=
range
(
TEST_FILES
)
for
i
in
extant
:
for
i
in
extant
:
extant
[
i
]
=
self
.
do_create
(
pre
=
"aa"
)
extant
[
i
]
=
self
.
do_create
(
pre
=
"aa"
)
...
...
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