21 from argparse
import Namespace
25 class BDBConcurrencyTest(unittest.TestCase):
28 output_file_name=
'Testing/testing_log.db'
32 os.remove(output_file_name)
38 q = list(truncate(1,d.final_conditions(Range.single(0))))
39 self.assertEqual(len(q), 1)
49 log_output_db=output_file_name,
51 integrator=
'hermite_cpu_log',
65 for i
in range(1,final_time+1):
66 integ.destination_time = i
75 child = psutil.Process(pid)
79 while child.status != psutil.STATUS_ZOMBIE:
83 last_time = do_query()
84 self.assertGreater(last_time,0)
88 if(last_time < final_time):
91 print(
"Querying failed", e)