hypothesis found a bug but the failing example is unreadable bytes
hypothesis 6.98. It found an input that crashes our config parser: Falsifying example: test_parse(data=b'\x00\xff...'). The bytes blob is about 200 characters. I can reproduce the crash but I can't tell what property is actually violated. Is there a way to make hypothesis shrink to something more meaningful? I'm using st.binary(min_size=0, max_size=256). The property is just that parse shouldn't raise, but I can't tell which byte pattern is triggering the crash from the shrunk example.
4 replies