Are you sure you want to decode the bytes here? Looking at `test_case`, if the 
matcher type is bytes, then the content is almost surely not decodeable using 
UTF-8:

```python
>>> import pickle
>>> matcher = pickle.dumps(object)
>>> matcher
b'\x80\x03cbuiltins\nobject\nq\x00.'
>>> matcher.decode("utf-8")
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 0: invalid 
start byte
```

[ Full content available at: https://github.com/apache/beam/pull/6397 ]
This message was relayed via gitbox.apache.org for [email protected]

Reply via email to