# Path: test/base.py
# PY2 = sys.version_info[0] < 3
# ROOT_DIR = abspath(join(dirname(__file__), '..'))
# def to_bytes(s):
# def touch(file_path):
# def build_tmp_pyconcrete(passphrase):
# def copy_pyconcrete_ext(tmp_dir):
# def remove_tmp_pyconcrete():
# def get_pyconcrete_env_path():
#     def __init__(self, *argv, **argd):
#     def setUpClass(cls):
#     def tearDownClass(cls):
#     def setUp(self):
#     def tearDown(self):
#     def lib_gen_py(self, py_code, py_filename, folder=None):
#     def lib_gen_pyc(self, py_code, pyc_filename, folder=None, keep_py=False):
#     def lib_gen_pye(self, py_code, pye_filename, folder=None, keep_py=False, keep_pyc=False):
#     def lib_compile_pyc(self, folder, remove_py=False):
#     def lib_compile_pye(self, folder, remove_py=False, remove_pyc=False):
# class TestPyConcreteBase(unittest.TestCase):


import logging
import os
import sys
import time
import unittest
        import pyconcrete  # noqa: F401
    import requests  # noqa: F401
from multiprocessing import Process, Queue
from os.path import abspath, dirname, join
from test import base
from zipfile import ZipFile
    from requests.adapters import HTTPAdapter  # noqa: F401
    from requests.auth import HTTPDigestAuth, _basic_auth_str  # noqa: F401
    from requests.compat import Morsel, builtin_str, cookielib, getproxies, is_py3, str, urljoin, urlparse  # noqa: F401
    from requests.cookies import cookiejar_from_dict, morsel_to_cookie  # noqa: F401
    from requests.exceptions import ConnectionError  # noqa: F401
    from requests.exceptions import ConnectTimeout  # noqa: F401
    from requests.exceptions import InvalidSchema  # noqa: F401
    from requests.exceptions import InvalidURL  # noqa: F401
    from requests.exceptions import MissingSchema  # noqa: F401
    from requests.exceptions import ReadTimeout  # noqa: F401
    from requests.exceptions import RetryError  # noqa: F401
    from requests.exceptions import Timeout  # noqa: F401
    from requests.hooks import default_hooks  # noqa: F401
    from requests.models import PreparedRequest, urlencode  # noqa: F401
    from requests.sessions import SessionRedirectMixin  # noqa: F401
    from requests.structures import CaseInsensitiveDict  # noqa: F401
# See the License for the specific language governing permissions and
# limitations under the License.


CUR_DIR = abspath(dirname(__file__))
ROOT_DIR = abspath(join(CUR_DIR, '..'))
DATA_DIR = join(CUR_DIR, 'data')
REQUEST_ZIP = join(DATA_DIR, 'requests-2.27.1.zip')  # zip structure: first level must contain `requests` folder
REQUEST_MAIN = join(DATA_DIR, 'main_requests.py')
PYADMIN_PATH = join(ROOT_DIR, 'pyconcrete-admin.py')
RUN_COUNT = int(os.environ.get('TEST_PYE_PERFORMANCE_COUNT', '5'))

logger = logging.getLogger('pyconcrete')


def main_requests(import_concrete, q):
    """
    testing main function for multiprocessing
    purpose: testing import without exception
    """
    if import_concrete:

    t = time.time()

    t = time.time() - t
    q.put(requests.__file__)
    q.put(t)


@unittest.skipIf(not os.path.exists(REQUEST_ZIP), "requests zip file doesn't exists")

# Path: test/base.py
# PY2 = sys.version_info[0] < 3
# ROOT_DIR = abspath(join(dirname(__file__), '..'))
# def to_bytes(s):
# def touch(file_path):
# def build_tmp_pyconcrete(passphrase):
# def copy_pyconcrete_ext(tmp_dir):
# def remove_tmp_pyconcrete():
# def get_pyconcrete_env_path():
#     def __init__(self, *argv, **argd):
#     def setUpClass(cls):
#     def tearDownClass(cls):
#     def setUp(self):
#     def tearDown(self):
#     def lib_gen_py(self, py_code, py_filename, folder=None):
#     def lib_gen_pyc(self, py_code, pyc_filename, folder=None, keep_py=False):
#     def lib_gen_pye(self, py_code, pye_filename, folder=None, keep_py=False, keep_pyc=False):
#     def lib_compile_pyc(self, folder, remove_py=False):
#     def lib_compile_pye(self, folder, remove_py=False, remove_pyc=False):
# class TestPyConcreteBase(unittest.TestCase):


# Path: test/test_pye_performance.py
import logging
import os
import sys
import time
import unittest
        import pyconcrete  # noqa: F401
    import requests  # noqa: F401
from multiprocessing import Process, Queue
from os.path import abspath, dirname, join
from test import base
from zipfile import ZipFile
    from requests.adapters import HTTPAdapter  # noqa: F401
    from requests.auth import HTTPDigestAuth, _basic_auth_str  # noqa: F401
    from requests.compat import Morsel, builtin_str, cookielib, getproxies, is_py3, str, urljoin, urlparse  # noqa: F401
    from requests.cookies import cookiejar_from_dict, morsel_to_cookie  # noqa: F401
    from requests.exceptions import ConnectionError  # noqa: F401
    from requests.exceptions import ConnectTimeout  # noqa: F401
    from requests.exceptions import InvalidSchema  # noqa: F401
    from requests.exceptions import InvalidURL  # noqa: F401
    from requests.exceptions import MissingSchema  # noqa: F401
    from requests.exceptions import ReadTimeout  # noqa: F401
    from requests.exceptions import RetryError  # noqa: F401
    from requests.exceptions import Timeout  # noqa: F401
    from requests.hooks import default_hooks  # noqa: F401
    from requests.models import PreparedRequest, urlencode  # noqa: F401
    from requests.sessions import SessionRedirectMixin  # noqa: F401
    from requests.structures import CaseInsensitiveDict  # noqa: F401

# See the License for the specific language governing permissions and
# limitations under the License.


CUR_DIR = abspath(dirname(__file__))
ROOT_DIR = abspath(join(CUR_DIR, '..'))
DATA_DIR = join(CUR_DIR, 'data')
REQUEST_ZIP = join(DATA_DIR, 'requests-2.27.1.zip')  # zip structure: first level must contain `requests` folder
REQUEST_MAIN = join(DATA_DIR, 'main_requests.py')
PYADMIN_PATH = join(ROOT_DIR, 'pyconcrete-admin.py')
RUN_COUNT = int(os.environ.get('TEST_PYE_PERFORMANCE_COUNT', '5'))

logger = logging.getLogger('pyconcrete')


def main_requests(import_concrete, q):
    """
    testing main function for multiprocessing
    purpose: testing import without exception
    """
    if import_concrete:

    t = time.time()

    t = time.time() - t
    q.put(requests.__file__)
    q.put(t)


@unittest.skipIf(not os.path.exists(REQUEST_ZIP), "requests zip file doesn't exists")

class TestPerformance(base.TestPyConcreteBase):