[Python-checkins] python/dist/src/Lib/test test_macostools.py, 1.5, 1.5.18.1

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Mon Dec 6 07:14:02 CET 2004


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24337/Lib/test

Modified Files:
      Tag: release24-maint
	test_macostools.py 
Log Message:
Don't have test_mkalias_relative run if sys.prefix does not exist.  Backport of
fix for bug #1077302.


Index: test_macostools.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_macostools.py,v
retrieving revision 1.5
retrieving revision 1.5.18.1
diff -u -d -r1.5 -r1.5.18.1
--- test_macostools.py	27 Feb 2003 23:17:26 -0000	1.5
+++ test_macostools.py	6 Dec 2004 06:13:59 -0000	1.5.18.1
@@ -71,6 +71,8 @@
         self.assertEqual(fss.as_pathname(), os.path.realpath(test_support.TESTFN))
 
     def test_mkalias_relative(self):
+        if not os.path.exists(sys.prefix):
+            return
         try:
             os.unlink(TESTFN2)
         except:



More information about the Python-checkins mailing list