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
c69d1c49
Kaydet (Commit)
c69d1c49
authored
Kas 21, 2005
tarafından
Walter Dörwald
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Add a rudimentary test for the platform module that at least calls each
documented function once.
üst
e5a7fad3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
0 deletions
+74
-0
test_platform.py
Lib/test/test_platform.py
+74
-0
No files found.
Lib/test/test_platform.py
0 → 100644
Dosyayı görüntüle @
c69d1c49
import
unittest
from
test
import
test_support
import
platform
class
PlatformTest
(
unittest
.
TestCase
):
def
test_architecture
(
self
):
res
=
platform
.
architecture
()
def
test_machine
(
self
):
res
=
platform
.
machine
()
def
test_node
(
self
):
res
=
platform
.
node
()
def
test_platform
(
self
):
for
aliased
in
(
False
,
True
):
for
terse
in
(
False
,
True
):
res
=
platform
.
platform
(
aliased
,
terse
)
def
test_processor
(
self
):
res
=
platform
.
processor
()
def
test_python_build
(
self
):
res
=
platform
.
python_build
()
def
test_python_compiler
(
self
):
res
=
platform
.
python_compiler
()
def
test_version
(
self
):
res1
=
platform
.
version
()
res2
=
platform
.
version_tuple
()
self
.
assertEqual
(
res1
,
"."
.
join
(
res2
))
def
test_release
(
self
):
res
=
platform
.
release
()
def
test_system
(
self
):
res
=
platform
.
system
()
def
test_version
(
self
):
res
=
platform
.
version
()
def
test_system_alias
(
self
):
res
=
platform
.
system_alias
(
platform
.
system
(),
platform
.
release
(),
platform
.
version
(),
)
def
test_uname
(
self
):
res
=
platform
.
uname
()
def
test_java_ver
(
self
):
res
=
platform
.
java_ver
()
def
test_win32_ver
(
self
):
res
=
platform
.
win32_ver
()
def
test_mac_ver
(
self
):
res
=
platform
.
mac_ver
()
def
test_dist
(
self
):
res
=
platform
.
dist
()
def
test_libc_ver
(
self
):
res
=
platform
.
libc_ver
()
def
test_main
():
test_support
.
run_unittest
(
PlatformTest
)
if
__name__
==
'__main__'
:
test_main
()
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