Trying to see if the problem in Martin's buildot is at
authorFacundo Batista <facundobatista@gmail.com>
Sun, 22 Jun 2008 18:23:55 +0000 (18:23 +0000)
committerFacundo Batista <facundobatista@gmail.com>
Sun, 22 Jun 2008 18:23:55 +0000 (18:23 +0000)
directory creation time...

Lib/test/test_posix.py

index a6f02eb1fe5458afb6356647fcf5235399cfd5d8..8480f4956085eadb67a8690557ebfb9801714293 100644 (file)
@@ -236,12 +236,15 @@ class PosixTester(unittest.TestCase):
         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)