aboutsummaryrefslogtreecommitdiff
path: root/devel/buildbot-slave/files/patch-buildslave__test____init__.py
blob: 79f601ca731701d763bdcfbe33000f748706ffcf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
--- ./buildslave/test/__init__.py.orig	2012-12-07 22:20:33.655375165 +1100
+++ ./buildslave/test/__init__.py	2012-12-07 22:21:11.070790866 +1100
@@ -58,6 +58,6 @@
     import mock
     mock = mock
 except ImportError:
-    print >>sys.stderr, ("\nBuildbot tests require the 'mock' module; "
-                         "try 'pip install mock'")
-    os._exit(1)
+    raise ImportError("Buildbot tests require the 'mock' module; "
+                      "try 'pip install mock'")
+