def test_include_bad_file(self):
    (rc, out, err) = self.assertRunNotOK('-i', os.path.join(self.directory, 'nosuchfile'), self.pkgdir)
    self.assertRegex(out, b'rror.*nosuchfile')
    self.assertNotRegex(err, b'Traceback')
    self.assertFalse(os.path.exists(importlib.util.cache_from_source(self.pkgdir_cachedir)))
def test_include_bad_file(self):
    (rc, out, err) = self.assertRunNotOK('-i', os.path.join(self.directory, 'nosuchfile'), self.pkgdir)
    self.assertRegex(out, b'rror.*nosuchfile')
    self.assertNotRegex(err, b'Traceback')
    self.assertFalse(os.path.exists(importlib.util.cache_from_source(self.pkgdir_cachedir)))