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
0e3a4c80
Kaydet (Commit)
0e3a4c80
authored
Agu 18, 2012
tarafından
Antoine Pitrou
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Issue #15615: Add some tests for the json module's handling of invalid input data.
Patch by Kushal Das.
üst
2de4be2e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
0 deletions
+13
-0
test_decode.py
Lib/json/tests/test_decode.py
+9
-0
ACKS
Misc/ACKS
+1
-0
NEWS
Misc/NEWS
+3
-0
No files found.
Lib/json/tests/test_decode.py
Dosyayı görüntüle @
0e3a4c80
...
@@ -45,6 +45,15 @@ class TestDecode(object):
...
@@ -45,6 +45,15 @@ class TestDecode(object):
object_hook
=
lambda
x
:
None
),
object_hook
=
lambda
x
:
None
),
OrderedDict
(
p
))
OrderedDict
(
p
))
def
test_extra_data
(
self
):
s
=
'[1, 2, 3]5'
msg
=
'Extra data'
self
.
assertRaisesRegexp
(
ValueError
,
msg
,
self
.
loads
,
s
)
def
test_invalid_escape
(
self
):
s
=
'["abc
\\
y"]'
msg
=
'escape'
self
.
assertRaisesRegexp
(
ValueError
,
msg
,
self
.
loads
,
s
)
class
TestPyDecode
(
TestDecode
,
PyTest
):
pass
class
TestPyDecode
(
TestDecode
,
PyTest
):
pass
class
TestCDecode
(
TestDecode
,
CTest
):
pass
class
TestCDecode
(
TestDecode
,
CTest
):
pass
Misc/ACKS
Dosyayı görüntüle @
0e3a4c80
...
@@ -194,6 +194,7 @@ Evan Dandrea
...
@@ -194,6 +194,7 @@ Evan Dandrea
Eric Daniel
Eric Daniel
Scott David Daniels
Scott David Daniels
Ben Darnell
Ben Darnell
Kushal Das
Jonathan Dasteel
Jonathan Dasteel
John DeGood
John DeGood
Ned Deily
Ned Deily
...
...
Misc/NEWS
Dosyayı görüntüle @
0e3a4c80
...
@@ -335,6 +335,9 @@ Library
...
@@ -335,6 +335,9 @@ Library
Tests
Tests
-----
-----
-
Issue
#
15615
:
Add
some
tests
for
the
json
module
's handling of invalid
input data. Patch by Kushal Das.
- Issue #15496: Add directory removal helpers for tests on Windows.
- Issue #15496: Add directory removal helpers for tests on Windows.
Patch by Jeremy Kloth.
Patch by Jeremy Kloth.
...
...
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