[Python-checkins] r64462 - python/trunk/Lib/test/test_posix.py

facundo.batista python-checkins at python.org
Sun Jun 22 20:23:56 CEST 2008


Author: facundo.batista
Date: Sun Jun 22 20:23:55 2008
New Revision: 64462

Log:

Trying to see if the problem in Martin's buildot is at 
directory creation time...


Modified:
   python/trunk/Lib/test/test_posix.py

Modified: python/trunk/Lib/test/test_posix.py
==============================================================================
--- python/trunk/Lib/test/test_posix.py	(original)
+++ python/trunk/Lib/test/test_posix.py	Sun Jun 22 20:23:55 2008
@@ -236,12 +236,15 @@
         if hasattr(posix, 'getcwd'):
             dirname = 'getcwd-test-directory-0123456789abcdef-01234567890abcdef'
             curdir = os.getcwd()
-            base_path = os.path.abspath(test_support.TESTFN[1:]) + '.getcwd'
+            base_path = os.path.abspath(test_support.TESTFN) + '.getcwd'
 
             try:
                 os.mkdir(base_path)
                 os.chdir(base_path)
+            except:
+                raise test_support.TestSkipped, "mkdir cannot create directory sufficiently deep for getcwd test"
 
+            try:
                 def _create_and_do_getcwd(dirname, current_path_length = 0):
                     try:
                         os.mkdir(dirname)


More information about the Python-checkins mailing list