# Path: stackimpact/runtime.py
# def min_version(major, minor=0):
#     return (sys.version_info.major == major and sys.version_info.minor >= minor)
# 
# class runtime_info(object):
#     OS_LINUX = (sys.platform.startswith('linux'))
#     OS_DARWIN = (sys.platform == 'darwin')
#     OS_WIN = (sys.platform == 'win32')
#     PYTHON_2 = (sys.version_info.major == 2)
#     PYTHON_3 = (sys.version_info.major == 3)
#     GEVENT = False


import os
import time
import unittest
import random
import threading
import stackimpact
    from urllib2 import urlopen
    from urllib.request import urlopen
from stackimpact.runtime import min_version, runtime_info
from test_server import TestServer
            debug = True
        )

        agent.block_reporter.profiler.reset()

        lock = threading.Lock()
        event = threading.Event()

        def lock_lock():
            lock.acquire()
            time.sleep(0.5)
            lock.release()

        def lock_wait():
            lock.acquire()
            lock.release()


        def event_lock():
            time.sleep(0.5)
            event.set()


        def event_wait():
            event.wait()


        def handler():
            time.sleep(0.4)


# Path: stackimpact/runtime.py
# def min_version(major, minor=0):
#     return (sys.version_info.major == major and sys.version_info.minor >= minor)
# 
# class runtime_info(object):
#     OS_LINUX = (sys.platform.startswith('linux'))
#     OS_DARWIN = (sys.platform == 'darwin')
#     OS_WIN = (sys.platform == 'win32')
#     PYTHON_2 = (sys.version_info.major == 2)
#     PYTHON_3 = (sys.version_info.major == 3)
#     GEVENT = False


# Path: tests/profilers/block_profiler_test.py
import os
import time
import unittest
import random
import threading
import stackimpact
    from urllib2 import urlopen
    from urllib.request import urlopen
from stackimpact.runtime import min_version, runtime_info
from test_server import TestServer

            debug = True
        )

        agent.block_reporter.profiler.reset()

        lock = threading.Lock()
        event = threading.Event()

        def lock_lock():
            lock.acquire()
            time.sleep(0.5)
            lock.release()

        def lock_wait():
            lock.acquire()
            lock.release()


        def event_lock():
            time.sleep(0.5)
            event.set()


        def event_wait():
            event.wait()


        def handler():
            time.sleep(0.4)


        def url_wait():