diff options
Diffstat (limited to 'tests/cpydiff/modules_json_nonserializable.py')
-rw-r--r-- | tests/cpydiff/modules_json_nonserializable.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/cpydiff/modules_json_nonserializable.py b/tests/cpydiff/modules_json_nonserializable.py index ffe523786f..d6a5660cad 100644 --- a/tests/cpydiff/modules_json_nonserializable.py +++ b/tests/cpydiff/modules_json_nonserializable.py @@ -6,10 +6,7 @@ workaround: Unknown """ import json -a = bytes(x for x in range(256)) try: - z = json.dumps(a) - x = json.loads(z) - print("Should not get here") + print(json.dumps(b"shouldn't be able to serialise bytes")) except TypeError: print("TypeError") |