Skip to content

Commit

Permalink
change test to support windows python3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
Patataman committed Aug 24, 2023
1 parent e1f9d88 commit 4bf2f06
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/terra/backends/aer_simulator/test_measure.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,8 @@ def test_mps_measure_subset_alg_qv(self):
circuit, shots=shots, mps_sample_measure_algorithm="mps_probabilities"
).result()
self.assertTrue(getattr(result2_prl, "success", "True"))
os.unsetenv("PRL_PROB_MEAS")
del os.environ["PRL_PROB_MEAS"] # Python 3.8 in Windows
# os.unsetenv("PRL_PROB_MEAS") # SInce Python 3.9

self.assertDictAlmostEqual(
result1.get_counts(circuit), result2_prl.get_counts(circuit), delta=0.1 * shots
Expand Down

0 comments on commit 4bf2f06

Please sign in to comment.