File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ def round_trip_test(obj):
38
38
assert True == json .loads ('true' )
39
39
assert False == json .loads ('false' )
40
40
# TODO: uncomment once None comparison is implemented
41
- # assert None == json.loads('null')
41
+ assert None == json .loads ('null' )
42
42
assert [] == json .loads ('[]' )
43
43
assert ['a' ] == json .loads ('["a"]' )
44
44
assert [['a' ], 'b' ] == json .loads ('[["a"], "b"]' )
Original file line number Diff line number Diff line change @@ -779,6 +779,7 @@ impl PartialEq for PyObject {
779
779
}
780
780
}
781
781
( PyObjectKind :: Boolean { value : a } , PyObjectKind :: Boolean { value : b } ) => a == b,
782
+ ( PyObjectKind :: None , PyObjectKind :: None ) => true ,
782
783
_ => panic ! (
783
784
"TypeError in COMPARE_OP: can't compare {:?} with {:?}" ,
784
785
self , other
You can’t perform that action at this time.
0 commit comments