A comment like that ("raises TypeError") needs to be a bit more explanatory.

Also, exceptions in invariance tests are usually coded as:
```python
for ... :
    if exceptional condition:
        continue
```