From c748c76d416fc774aa6a1338653e935fae876658 Mon Sep 17 00:00:00 2001 From: Hiroshi Horii Date: Tue, 2 Apr 2019 11:29:28 +0900 Subject: [PATCH] modify thread tests again --- test/terra/utils/qasm_simulator/qasm_thread_management.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/terra/utils/qasm_simulator/qasm_thread_management.py b/test/terra/utils/qasm_simulator/qasm_thread_management.py index 5f53e1a062..7015fab678 100644 --- a/test/terra/utils/qasm_simulator/qasm_thread_management.py +++ b/test/terra/utils/qasm_simulator/qasm_thread_management.py @@ -53,7 +53,7 @@ def test_qasm_max_memory_default(self): backend_opts = {} result = self.SIMULATOR.run(qobj, backend_options=backend_opts).result() system_memory = int(psutil.virtual_memory().total / 1024 / 1024) - self.assertGreaterEqual(result.metadata['max_memory_mb'], system_memory / 2, msg="statevector_memory is too small.") + self.assertGreaterEqual(result.metadata['max_memory_mb'], int(system_memory / 2), msg="statevector_memory is too small.") self.assertLessEqual(result.metadata['max_memory_mb'], system_memory, msg="statevector_memory is too big.") def test_qasm_max_memory_specified(self):