Author: Armin Rigo <[email protected]>
Branch: py3.6
Changeset: r97138:bbfb481934ce
Date: 2019-08-10 01:16 +0200
http://bitbucket.org/pypy/pypy/changeset/bbfb481934ce/

Log:    hg merge default

diff --git a/extra_tests/test_json.py b/extra_tests/test_json.py
--- a/extra_tests/test_json.py
+++ b/extra_tests/test_json.py
@@ -46,3 +46,7 @@
                  == '{"3": 4, "5": 6}'
     assert json.dumps({Ellipsis: 42, 3: 4, 5: 6}, skipkeys=True) \
                  == '{"3": 4, "5": 6}'
+
+def test_boolean_as_dict_key():
+    assert json.dumps({True: 5}) == '{"true": 5}'
+    assert json.dumps({False: 5}) == '{"false": 5}'
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to