# Path: momo/utils.py
# def mkdir_p(path):
#     """mkdir -p path"""
#     if PY3:
#         return os.makedirs(path, exist_ok=True)
#     try:
#         os.makedirs(path)
#     except OSError as exc:
#         if exc.errno == errno.EEXIST and os.path.isdir(path):
#             pass
#         else:
#             raise


import os
import pytest
import shutil
from momo.utils import mkdir_p


TEST_DIR = os.path.abspath(
    os.path.join(os.path.dirname(__file__), os.pardir, '__tests__'))


@pytest.fixture
def testdir(request):

# Path: momo/utils.py
# def mkdir_p(path):
#     """mkdir -p path"""
#     if PY3:
#         return os.makedirs(path, exist_ok=True)
#     try:
#         os.makedirs(path)
#     except OSError as exc:
#         if exc.errno == errno.EEXIST and os.path.isdir(path):
#             pass
#         else:
#             raise


# Path: tests/conftest.py
import os
import pytest
import shutil
from momo.utils import mkdir_p



TEST_DIR = os.path.abspath(
    os.path.join(os.path.dirname(__file__), os.pardir, '__tests__'))


@pytest.fixture
def testdir(request):

    mkdir_p(TEST_DIR)