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
4216aa1e
Kaydet (Commit)
4216aa1e
authored
Ock 26, 2013
tarafından
Stefan Krah
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adapt test for build --without-doc-strings.
üst
c59c85c1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
test_bytes.py
Lib/test/test_bytes.py
+1
-0
test_support.py
Lib/test/test_support.py
+5
-0
No files found.
Lib/test/test_bytes.py
Dosyayı görüntüle @
4216aa1e
...
...
@@ -925,6 +925,7 @@ class AssortedBytesTest(unittest.TestCase):
self
.
assertEqual
(
bytes
(
b
"abc"
)
<
b
"ab"
,
False
)
self
.
assertEqual
(
bytes
(
b
"abc"
)
<=
b
"ab"
,
False
)
@test.test_support.requires_docstrings
def
test_doc
(
self
):
self
.
assertIsNotNone
(
bytearray
.
__doc__
)
self
.
assertTrue
(
bytearray
.
__doc__
.
startswith
(
"bytearray("
),
bytearray
.
__doc__
)
...
...
Lib/test/test_support.py
Dosyayı görüntüle @
4216aa1e
...
...
@@ -20,6 +20,7 @@ import re
import
time
import
struct
import
_testcapi
import
sysconfig
try
:
import
thread
except
ImportError
:
...
...
@@ -1111,6 +1112,10 @@ def requires_resource(resource):
else
:
return
unittest
.
skip
(
"resource {0!r} is not enabled"
.
format
(
resource
))
requires_docstrings
=
unittest
.
skipUnless
(
sysconfig
.
get_config_var
(
'WITH_DOC_STRINGS'
),
"test requires docstrings"
)
def
cpython_only
(
test
):
"""
Decorator for tests only applicable on CPython.
...
...
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