Skip to content

Commit

Permalink
Replaced try block with assertEqual() statement.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raghav-Bell authored and jakelishman committed Nov 6, 2023
1 parent a8335b9 commit aeca54c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions test/python/transpiler/test_dynamical_decoupling.py
Original file line number Diff line number Diff line change
Expand Up @@ -1047,11 +1047,8 @@ def test_paramaterized_global_phase(self):
PadDynamicalDecoupling(self.durations, dd_sequence),
]
)
try:
pm.run(qc)
except TypeError:
print("test_paramaterized_global_phase fails")
raise

self.assertEqual(qc.global_phase + np.pi, pm.run(qc).global_phase)


if __name__ == "__main__":
Expand Down

0 comments on commit aeca54c

Please sign in to comment.