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
4f95a52f
Kaydet (Commit)
4f95a52f
authored
Nis 13, 2011
tarafından
Ezio Melotti
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
#9233: skip _json-specific tests when _json is not available.
üst
a8b0f9ad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
test_scanstring.py
Lib/json/tests/test_scanstring.py
+7
-1
test_speedups.py
Lib/json/tests/test_speedups.py
+7
-1
No files found.
Lib/json/tests/test_scanstring.py
Dosyayı görüntüle @
4f95a52f
import
sys
import
decimal
from
unittest
import
TestCase
from
unittest
import
TestCase
,
skipUnless
import
json
import
json.decoder
try
:
import
_json
except
ImportError
:
_json
=
None
class
TestScanString
(
TestCase
):
def
test_py_scanstring
(
self
):
self
.
_test_scanstring
(
json
.
decoder
.
py_scanstring
)
@skipUnless
(
_json
,
'test requires the _json module'
)
def
test_c_scanstring
(
self
):
if
json
.
decoder
.
c_scanstring
is
not
None
:
self
.
_test_scanstring
(
json
.
decoder
.
c_scanstring
)
...
...
Lib/json/tests/test_speedups.py
Dosyayı görüntüle @
4f95a52f
import
decimal
from
unittest
import
TestCase
from
unittest
import
TestCase
,
skipUnless
from
json
import
decoder
,
encoder
,
scanner
try
:
import
_json
except
ImportError
:
_json
=
None
@skipUnless
(
_json
,
'test requires the _json module'
)
class
TestSpeedups
(
TestCase
):
def
test_scanstring
(
self
):
self
.
assertEqual
(
decoder
.
scanstring
.
__module__
,
"_json"
)
...
...
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