mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Trying to see if the problem in Martin's buildot is at
directory creation time...
This commit is contained in:
parent
8bd05191fa
commit
96f3dc36ed
1 changed files with 4 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue