def test_parallel_sched(self): pt.set_parallel_schedule("dynamic", 4) self.assertSequenceEqual(pt.get_parallel_schedule(), ("dynamic", 4)) pt.set_parallel_schedule("static", 1) self.assertSequenceEqual(pt.get_parallel_schedule(), ("static", 1))
def setUp(self): self.original_schedule = pt.get_parallel_schedule() self.original_threads = pt.get_num_threads()