Skip to content

Commit

Permalink
Fix ArithmeticPT test
Browse files Browse the repository at this point in the history
  • Loading branch information
terrorfisch committed Jul 8, 2021
1 parent 6d9b8c4 commit d42b2c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/pulses/arithmetic_pulse_template_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ def test_repr(self):

with mock.patch.object(DummyPulseTemplate, '__repr__', wraps=lambda *args: 'dummy'):
r = repr(ArithmeticPulseTemplate(pt, '-', scalar))
self.assertEqual("(dummy - Expression('x'))", r)
self.assertEqual("(dummy - ExpressionScalar('x'))", r)

arith = ArithmeticPulseTemplate(pt, '-', scalar, identifier='id')
self.assertEqual(super(ArithmeticPulseTemplate, arith).__repr__(), repr(arith))
Expand Down

0 comments on commit d42b2c7

Please sign in to comment.