def test_default_timeout(self):
        # create a barrier with a low default timeout
        barrier = self.barriertype(self.N, timeout=0.3)
        def f():
            i = barrier.wait()
            if i == self.N // 2:
                # One thread is later than the default timeout of 0.3s.
                time.sleep(1.0)
            self.assertRaises(threading.BrokenBarrierError, barrier.wait)
        self.run_threads(f)
Reimplemented to refresh the traits of the render window.
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/lock_tests.py/BarrierTests.test_default_timeout--crossover with--dataset/ETHPy150Open enthought/mayavi/tvtk/pyface/ui/qt4/scene.py/_VTKRenderWindowInteractor.resizeEvent