@Skip(svntest.main.tests_use_prepackaged_repository)
def create_in_repo_subdir(sbox):
    "'svnadmin create /path/to/repo/subdir'"
    sbox.build(create_wc=False, empty=True)
    repo_dir = sbox.repo_dir
    success = False
    try:
        subdir = os.path.join(repo_dir, 'Z')
        svntest.main.create_repos(subdir)
    except svntest.main.SVNRepositoryCreateFailure:
        success = True
    if (not success):
        raise svntest.Failure
    cwd = os.getcwd()
    success = False
    try:
        subdir = os.path.join(repo_dir, 'conf')
        os.chdir(subdir)
        svntest.main.create_repos('Z')
        os.chdir(cwd)
    except svntest.main.SVNRepositoryCreateFailure:
        success = True
        os.chdir(cwd)
    if (not success):
        raise svntest.Failure
'svnadmin create /path/to/repo/subdir'
@Skip(svntest.main.tests_use_prepackaged_repository)
def create_in_repo_subdir(sbox):
    
    sbox.build(create_wc=False, empty=True)
    repo_dir = sbox.repo_dir
    success = False
    try:
        subdir = os.path.join(repo_dir, 'Z')
        svntest.main.create_repos(subdir)
    except svntest.main.SVNRepositoryCreateFailure:
        success = True
    if (not success):
        raise svntest.Failure
    cwd = os.getcwd()
    success = False
    try:
        subdir = os.path.join(repo_dir, 'conf')
        os.chdir(subdir)
        svntest.main.create_repos('Z')
        os.chdir(cwd)
    except svntest.main.SVNRepositoryCreateFailure:
        success = True
        os.chdir(cwd)
    if (not success):
        raise svntest.Failure