We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f0c8a3 commit bd12982Copy full SHA for bd12982
tests/snippets/json_snippet.py
@@ -38,7 +38,7 @@ def round_trip_test(obj):
38
assert True == json.loads('true')
39
assert False == json.loads('false')
40
# TODO: uncomment once None comparison is implemented
41
-# assert None == json.loads('null')
+assert None == json.loads('null')
42
assert [] == json.loads('[]')
43
assert ['a'] == json.loads('["a"]')
44
assert [['a'], 'b'] == json.loads('[["a"], "b"]')
vm/src/pyobject.rs
@@ -779,6 +779,7 @@ impl PartialEq for PyObject {
779
}
780
781
(PyObjectKind::Boolean { value: a }, PyObjectKind::Boolean { value: b }) => a == b,
782
+ (PyObjectKind::None, PyObjectKind::None) => true,
783
_ => panic!(
784
"TypeError in COMPARE_OP: can't compare {:?} with {:?}",
785
self, other
0 commit comments