Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
7c2d9782
Commit
7c2d9782
authored
Mar 26, 2018
by
Oren Milman
Committed by
Serhiy Storchaka
Mar 26, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-6986: Add a comment to clarify a test of _json.make_encoder(). (GH-3789)
parent
e1052947
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
Lib/test/test_json/test_speedups.py
Lib/test/test_json/test_speedups.py
+2
-0
No files found.
Lib/test/test_json/test_speedups.py
View file @
7c2d9782
...
@@ -31,6 +31,8 @@ class TestDecode(CTest):
...
@@ -31,6 +31,8 @@ class TestDecode(CTest):
class
TestEncode
(
CTest
):
class
TestEncode
(
CTest
):
def
test_make_encoder
(
self
):
def
test_make_encoder
(
self
):
# bpo-6986: The interpreter shouldn't crash in case c_make_encoder()
# receives invalid arguments.
self
.
assertRaises
(
TypeError
,
self
.
json
.
encoder
.
c_make_encoder
,
self
.
assertRaises
(
TypeError
,
self
.
json
.
encoder
.
c_make_encoder
,
(
True
,
False
),
(
True
,
False
),
b"
\
xCD
\
x7D
\
x3D
\
x4E
\
x12
\
x4C
\
xF9
\
x79
\
xD7
\
x52
\
xBA
\
x82
\
xF2
\
x27
\
x4A
\
x7D
\
xA0
\
xCA
\
x75
"
,
b"
\
xCD
\
x7D
\
x3D
\
x4E
\
x12
\
x4C
\
xF9
\
x79
\
xD7
\
x52
\
xBA
\
x82
\
xF2
\
x27
\
x4A
\
x7D
\
xA0
\
xCA
\
x75
"
,
...
...
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