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
7546220f
Kaydet (Commit)
7546220f
authored
Ara 01, 2013
tarafından
Serhiy Storchaka
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Fixed JSON tests on wide build when ran from *.pyc files (issue #11489).
üst
df9460f8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
test_scanstring.py
Lib/json/tests/test_scanstring.py
+3
-2
No files found.
Lib/json/tests/test_scanstring.py
Dosyayı görüntüle @
7546220f
...
@@ -100,14 +100,15 @@ class TestScanstring(object):
...
@@ -100,14 +100,15 @@ class TestScanstring(object):
self
.
assertEqual
(
scanstring
(
given
,
1
,
None
,
True
),
self
.
assertEqual
(
scanstring
(
given
,
1
,
None
,
True
),
(
expect
,
len
(
given
)))
(
expect
,
len
(
given
)))
surrogates
=
unichr
(
0xd834
)
+
unichr
(
0xdd20
)
assertScan
(
'"z
\\
ud834
\\
u0079x"'
,
u'z
\ud834
yx'
)
assertScan
(
'"z
\\
ud834
\\
u0079x"'
,
u'z
\ud834
yx'
)
assertScan
(
'"z
\\
ud834
\\
udd20x"'
,
u'z
\U0001d120
x'
)
assertScan
(
'"z
\\
ud834
\\
udd20x"'
,
u'z
\U0001d120
x'
)
assertScan
(
'"z
\\
ud834
\\
ud834
\\
udd20x"'
,
u'z
\ud834\U0001d120
x'
)
assertScan
(
'"z
\\
ud834
\\
ud834
\\
udd20x"'
,
u'z
\ud834\U0001d120
x'
)
assertScan
(
'"z
\\
ud834x"'
,
u'z
\ud834
x'
)
assertScan
(
'"z
\\
ud834x"'
,
u'z
\ud834
x'
)
assertScan
(
u'"z
\\
ud834
\udd20
x12345"'
,
u'z
\ud834\udd20
x12345'
)
assertScan
(
u'"z
\\
ud834
\udd20
x12345"'
,
u'z
%
sx12345'
%
surrogates
)
assertScan
(
'"z
\\
udd20x"'
,
u'z
\udd20
x'
)
assertScan
(
'"z
\\
udd20x"'
,
u'z
\udd20
x'
)
assertScan
(
u'"z
\ud834\udd20
x"'
,
u'z
\ud834\udd20
x'
)
assertScan
(
u'"z
\ud834\udd20
x"'
,
u'z
\ud834\udd20
x'
)
assertScan
(
u'"z
\ud834\\
udd20x"'
,
u'z
\ud834\udd20
x'
)
assertScan
(
u'"z
\ud834\\
udd20x"'
,
u'z
%
sx'
%
surrogates
)
assertScan
(
u'"z
\ud834
x"'
,
u'z
\ud834
x'
)
assertScan
(
u'"z
\ud834
x"'
,
u'z
\ud834
x'
)
def
test_bad_escapes
(
self
):
def
test_bad_escapes
(
self
):
...
...
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