summaryrefslogtreecommitdiff
path: root/tests/cpydiff/modules_json_nonserializable.py
blob: d83e7beca2d5a019eef5630d639e5f5edf76ec22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"""
categories: Modules,json
description: JSON module does not throw exception when object is not serialisable
cause: Unknown
workaround: Unknown
"""

import json

try:
    print(json.dumps(b"shouldn't be able to serialise bytes"))
except TypeError:
    print("TypeError")