This doesn't work with the doctester. See the travis tests.  This should be

```py
>>> preview(x + y, output='png', viewer='StringIO', 
...         outputbuffer=obj) # doctest: +SKIP
```

Note that the `\` is not needed.