This is because the build creates a file with a non-ASCII name at its top level in the directory that launchpad-buildd scans for output .snaps, and when running in LC_ALL=C the call to self.backend.islink for this file fails. It may be difficult to construct a good test for this, since you can only change that aspect of Python's locale handling by starting a new interpreter, but it should be easy enough to fix otherwise.
This is because the build creates a file with a non-ASCII name at its top level in the directory that launchpad-buildd scans for output .snaps, and when running in LC_ALL=C the call to self.backend.islink for this file fails. It may be difficult to construct a good test for this, since you can only change that aspect of Python's locale handling by starting a new interpreter, but it should be easy enough to fix otherwise.