If you're going to change this, put it in a with statement instead:
```python
with assertRaisesRegexp(ValueError, 'arrays must all be same length'):
    DataFrame(data)
```