def METHOD_NAME(self):
    # Issue 3088: if there is a threads switch inside the __init__
    # of a threading.local derived class, the per-thread dictionary
    # is created but not correctly set on the object.
    # The first member set may be bogus.
    import time
    class Local(self._local):
        def __init__(self):
            time.sleep(0.01)
    local = Local()
    def f(i):
        local.x = i
        # Simply check that the variable is correctly set
        self.assertEqual(local.x, i)
    with support.start_threads(threading.Thread(target=f, args=(i,))
                               for i in range(10)):
        pass