def METHOD_NAME(self):
    with tempfile.NamedTemporaryFile() as f:
        f.write(b'\xc8\n')
        f.flush()
        with self.assertRaises(UnicodeDecodeError):
            with WPTScreenshot(f.name, api=self.api, processes=1) as s:
                s.process()
    self.server.terminate()
    _, err = self.server.communicate()
    sizes = self._batch_sizes(err)
    self.assertListEqual(sizes, [])