[Python-modules-team] Bug#877321: django-sitetree: Should not mask test failures

Chris Lamb lamby at debian.org
Sat Sep 30 14:21:28 UTC 2017


Source: django-sitetree
Version: 1.8.0+dfsg-1
Severity: important
Tags: patch

Hi,

Failing tests in django-sitetree do not currently cause the package to fail
to build.

Patch attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
diff --git a/sitetree/runtests.py b/sitetree/runtests.py
index be464ba..0ff3aff 100755
--- a/sitetree/runtests.py
+++ b/sitetree/runtests.py
@@ -1,5 +1,7 @@
 #! /usr/bin/env python
 
+import sys
+
 if __name__ == '__main__':
     from pytest import main as pytest_main
-    pytest_main()
+    sys.exit(pytest_main())


More information about the Python-modules-team mailing list