summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2008-06-22 18:23:55 (GMT)
committerFacundo Batista <facundobatista@gmail.com>2008-06-22 18:23:55 (GMT)
commit96f3dc36ed206f6456d0e5ddfed7737ded4ae56c (patch)
treef20471dd24f249a2039d34e3970197df97bdb378
parent8bd05191faf6267080daf6646e79d288552cbb68 (diff)
downloadcpython-96f3dc36ed206f6456d0e5ddfed7737ded4ae56c.zip
cpython-96f3dc36ed206f6456d0e5ddfed7737ded4ae56c.tar.gz
cpython-96f3dc36ed206f6456d0e5ddfed7737ded4ae56c.tar.bz2
Trying to see if the problem in Martin's buildot is at
directory creation time...
-rw-r--r--Lib/test/test_posix.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index a6f02eb..8480f49 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -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)