Rev 4615: (bialix) Fix bzr path shown in tests in file:///home/pqm/archives/thelove/bzr/%2Btrunk/

Canonical.com Patch Queue Manager pqm at pqm.ubuntu.com
Sat Aug 15 13:30:04 BST 2009


At file:///home/pqm/archives/thelove/bzr/%2Btrunk/

------------------------------------------------------------
revno: 4615 [merge]
revision-id: pqm at pqm.ubuntu.com-20090815123000-raj3s1ovqhy4abfs
parent: pqm at pqm.ubuntu.com-20090815091503-qwbm6glvv31rnujw
parent: v.ladeuil+lp at free.fr-20090815111443-29g20jn371a5irg5
committer: Canonical.com Patch Queue Manager <pqm at pqm.ubuntu.com>
branch nick: +trunk
timestamp: Sat 2009-08-15 13:30:00 +0100
message:
  (bialix) Fix bzr path shown in tests
modified:
  bzrlib/tests/__init__.py       selftest.py-20050531073622-8d0e3c8845c97a64
=== modified file 'bzrlib/tests/__init__.py'
--- a/bzrlib/tests/__init__.py	2009-08-15 09:15:03 +0000
+++ b/bzrlib/tests/__init__.py	2009-08-15 11:14:43 +0000
@@ -227,8 +227,12 @@
 
     def startTests(self):
         import platform
+        if getattr(sys, 'frozen', None) is None:
+            bzr_path = osutils.realpath(sys.argv[0])
+        else:
+            bzr_path = sys.executable
         self.stream.write(
-            'testing: %s\n' % (osutils.realpath(sys.argv[0]),))
+            'testing: %s\n' % (bzr_path,))
         self.stream.write(
             '   %s\n' % (
                     bzrlib.__path__[0],))




More information about the bazaar-commits mailing list