'Test the barrier\'s default timeout'

def test_default_timeout(self):

    barrier = self.barriertype(self.N, timeout=0.3)
    def f():
        i = barrier.wait()
        if (i == (self.N // 2)):
            time.sleep(1.0)
        self.assertRaises(threading.BrokenBarrierError, barrier.wait)
    self.run_threads(f)
