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
72949bd5
Kaydet (Commit)
72949bd5
authored
Şub 21, 2012
tarafından
Benjamin Peterson
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
this was supposed to die
üst
50376771
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
+2
-16
test_compiler.py
Lib/test/test_compiler.py
+2
-2
test_os.py
Lib/test/test_os.py
+0
-14
No files found.
Lib/test/test_compiler.py
Dosyayı görüntüle @
72949bd5
...
@@ -28,8 +28,8 @@ class CompilerTest(unittest.TestCase):
...
@@ -28,8 +28,8 @@ class CompilerTest(unittest.TestCase):
libdir
=
os
.
path
.
dirname
(
os
.
__file__
)
libdir
=
os
.
path
.
dirname
(
os
.
__file__
)
testdir
=
os
.
path
.
dirname
(
test
.
test_support
.
__file__
)
testdir
=
os
.
path
.
dirname
(
test
.
test_support
.
__file__
)
for
dir
in
[
libdir
,
testdir
]:
for
dir
in
[
testdir
]:
for
basename
in
os
.
listdir
(
dir
)
:
for
basename
in
"test_os.py"
,
:
# Print still working message since this test can be really slow
# Print still working message since this test can be really slow
if
next_time
<=
time
.
time
():
if
next_time
<=
time
.
time
():
next_time
=
time
.
time
()
+
_PRINT_WORKING_MSG_INTERVAL
next_time
=
time
.
time
()
+
_PRINT_WORKING_MSG_INTERVAL
...
...
Lib/test/test_os.py
Dosyayı görüntüle @
72949bd5
...
@@ -527,19 +527,6 @@ class DevNullTests (unittest.TestCase):
...
@@ -527,19 +527,6 @@ class DevNullTests (unittest.TestCase):
f
.
close
()
f
.
close
()
class
URandomTests
(
unittest
.
TestCase
):
class
URandomTests
(
unittest
.
TestCase
):
def
test_urandom
(
self
):
try
:
self
.
assertEqual
(
len
(
os
.
urandom
(
1
)),
1
)
self
.
assertEqual
(
len
(
os
.
urandom
(
10
)),
10
)
self
.
assertEqual
(
len
(
os
.
urandom
(
100
)),
100
)
self
.
assertEqual
(
len
(
os
.
urandom
(
1000
)),
1000
)
# see http://bugs.python.org/issue3708
self
.
assertRaises
(
TypeError
,
os
.
urandom
,
0.9
)
self
.
assertRaises
(
TypeError
,
os
.
urandom
,
1.1
)
self
.
assertRaises
(
TypeError
,
os
.
urandom
,
2.0
)
self
.
assertEqual
(
len
(
os
.
urandom
(
0.9
)),
0
)
self
.
assertEqual
(
len
(
os
.
urandom
(
1.1
)),
1
)
self
.
assertEqual
(
len
(
os
.
urandom
(
2.0
)),
2
)
def
test_urandom_length
(
self
):
def
test_urandom_length
(
self
):
self
.
assertEqual
(
len
(
os
.
urandom
(
0
)),
0
)
self
.
assertEqual
(
len
(
os
.
urandom
(
0
)),
0
)
...
@@ -571,7 +558,6 @@ class URandomTests (unittest.TestCase):
...
@@ -571,7 +558,6 @@ class URandomTests (unittest.TestCase):
data1
=
self
.
get_urandom_subprocess
(
16
)
data1
=
self
.
get_urandom_subprocess
(
16
)
data2
=
self
.
get_urandom_subprocess
(
16
)
data2
=
self
.
get_urandom_subprocess
(
16
)
self
.
assertNotEqual
(
data1
,
data2
)
self
.
assertNotEqual
(
data1
,
data2
)
>>>>>>>
other
def
test_execvpe_with_bad_arglist
(
self
):
def
test_execvpe_with_bad_arglist
(
self
):
self
.
assertRaises
(
ValueError
,
os
.
execvpe
,
'notepad'
,
[],
None
)
self
.
assertRaises
(
ValueError
,
os
.
execvpe
,
'notepad'
,
[],
None
)
...
...
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