instead of this try-except block, copy the `assertErrorRegex` function from one of the other test modules, and use something like this:

```python
self.assertErrorRegex(TypeError, ".*", Tmp, txt)
```