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
7917aadb
Unverified
Kaydet (Commit)
7917aadb
authored
Eyl 04, 2018
tarafından
Serhiy Storchaka
Kaydeden (comit)
GitHub
Eyl 04, 2018
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
bpo-26544: Add test for platform._comparable_version(). (GH-8973)
üst
39487196
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
36 additions
and
0 deletions
+36
-0
test_platform.py
Lib/test/test_platform.py
+36
-0
No files found.
Lib/test/test_platform.py
Dosyayı görüntüle @
7917aadb
...
...
@@ -275,6 +275,42 @@ class PlatformTest(unittest.TestCase):
self
.
assertEqual
(
platform
.
libc_ver
(
support
.
TESTFN
),
(
'glibc'
,
'1.23.4'
))
@support.cpython_only
def
test__comparable_version
(
self
):
from
platform
import
_comparable_version
as
V
self
.
assertEqual
(
V
(
'1.2.3'
),
V
(
'1.2.3'
))
self
.
assertLess
(
V
(
'1.2.3'
),
V
(
'1.2.10'
))
self
.
assertEqual
(
V
(
'1.2.3.4'
),
V
(
'1_2-3+4'
))
self
.
assertLess
(
V
(
'1.2spam'
),
V
(
'1.2dev'
))
self
.
assertLess
(
V
(
'1.2dev'
),
V
(
'1.2alpha'
))
self
.
assertLess
(
V
(
'1.2dev'
),
V
(
'1.2a'
))
self
.
assertLess
(
V
(
'1.2alpha'
),
V
(
'1.2beta'
))
self
.
assertLess
(
V
(
'1.2a'
),
V
(
'1.2b'
))
self
.
assertLess
(
V
(
'1.2beta'
),
V
(
'1.2c'
))
self
.
assertLess
(
V
(
'1.2b'
),
V
(
'1.2c'
))
self
.
assertLess
(
V
(
'1.2c'
),
V
(
'1.2RC'
))
self
.
assertLess
(
V
(
'1.2c'
),
V
(
'1.2rc'
))
self
.
assertLess
(
V
(
'1.2RC'
),
V
(
'1.2.0'
))
self
.
assertLess
(
V
(
'1.2rc'
),
V
(
'1.2.0'
))
self
.
assertLess
(
V
(
'1.2.0'
),
V
(
'1.2pl'
))
self
.
assertLess
(
V
(
'1.2.0'
),
V
(
'1.2p'
))
self
.
assertLess
(
V
(
'1.5.1'
),
V
(
'1.5.2b2'
))
self
.
assertLess
(
V
(
'3.10a'
),
V
(
'161'
))
self
.
assertEqual
(
V
(
'8.02'
),
V
(
'8.02'
))
self
.
assertLess
(
V
(
'3.4j'
),
V
(
'1996.07.12'
))
self
.
assertLess
(
V
(
'3.1.1.6'
),
V
(
'3.2.pl0'
))
self
.
assertLess
(
V
(
'2g6'
),
V
(
'11g'
))
self
.
assertLess
(
V
(
'0.9'
),
V
(
'2.2'
))
self
.
assertLess
(
V
(
'1.2'
),
V
(
'1.2.1'
))
self
.
assertLess
(
V
(
'1.1'
),
V
(
'1.2.2'
))
self
.
assertLess
(
V
(
'1.1'
),
V
(
'1.2'
))
self
.
assertLess
(
V
(
'1.2.1'
),
V
(
'1.2.2'
))
self
.
assertLess
(
V
(
'1.2'
),
V
(
'1.2.2'
))
self
.
assertLess
(
V
(
'0.4'
),
V
(
'0.4.0'
))
self
.
assertLess
(
V
(
'1.13++'
),
V
(
'5.5.kw'
))
self
.
assertLess
(
V
(
'0.960923'
),
V
(
'2.2beta29'
))
def
test_popen
(
self
):
mswindows
=
(
sys
.
platform
==
"win32"
)
...
...
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