mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
DistutilsSetupError was not raised when one single warning occured
This commit is contained in:
parent
22aa4bbdc5
commit
783f493173
2 changed files with 9 additions and 10 deletions
|
|
@ -72,7 +72,7 @@ class check(Command):
|
|||
|
||||
# let's raise an error in strict mode, if we have at least
|
||||
# one warning
|
||||
if self.strict and self._warnings > 1:
|
||||
if self.strict and self._warnings > 0:
|
||||
raise DistutilsSetupError('Please correct your package.')
|
||||
|
||||
def check_metadata(self):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue