[Pkg-bazaar-commits] ./bzr/unstable r837: - better error when failing to run selftest on python2.3

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:21:12 UTC 2009


------------------------------------------------------------
revno: 837
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Wed 2005-07-06 10:38:13 +1000
message:
  - better error when failing to run selftest on python2.3
modified:
  bzrlib/selftest/__init__.py
-------------- next part --------------
=== modified file 'bzrlib/selftest/__init__.py'
--- a/bzrlib/selftest/__init__.py	2005-07-05 07:19:12 +0000
+++ b/bzrlib/selftest/__init__.py	2005-07-06 00:38:13 +0000
@@ -21,6 +21,7 @@
     import shutil
     from subprocess import call, Popen, PIPE
 except ImportError, e:
+    import sys
     sys.stderr.write("testbzr: sorry, this test suite requires the subprocess module\n"
                      "this is shipped with python2.4 and available separately for 2.3\n")
     raise



More information about the Pkg-bazaar-commits mailing list