def test_main():
    suite = DocTestSuite('_threading_local')

    try:
        from thread import _local
    except __HOLE__:
        pass
    else:
        import _threading_local
        local_orig = _threading_local.local
        def setUp(test):
            _threading_local.local = _local
        def tearDown(test):
            _threading_local.local = local_orig
        suite.addTest(DocTestSuite('_threading_local',
                                   setUp=setUp, tearDown=tearDown)
                      )
        suite.addTest(unittest.makeSuite(ThreadingLocalTest))

    test_support.run_suite(suite)
dataset/ETHPy150Open ofermend/medicare-demo/socialite/jython/Lib/test/test_threading_local.py/test_main