Can you try in your test to declare it with the wrapper like:

```
@handle_stream_exception
def _raise_filesystem_error():
  raise FileSystemError()
```

That way the actual decorator is also tested.