Skip to content

Commit

Permalink
update test_backend_deepcopy (#937)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 authored Jul 6, 2023
1 parent 25f9373 commit 4393cb9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/integration/test_backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ def test_backend_run(self):
with self.assertRaises(RuntimeError):
backend.run()

@quantum_only
def test_backend_deepcopy(self):
"""Test that deepcopy on IBMBackend works correctly"""
backend = self.backend
Expand All @@ -175,10 +174,11 @@ def test_backend_deepcopy(self):
backend_copy.configuration().basis_gates,
backend.configuration().basis_gates,
)
self.assertEqual(
backend_copy.properties().last_update_date,
backend.properties().last_update_date,
)
if backend.properties():
self.assertEqual(
backend_copy.properties().last_update_date,
backend.properties().last_update_date,
)
self.assertEqual(backend_copy._instance, backend._instance)
self.assertEqual(backend_copy._service._backends, backend._service._backends)
self.assertEqual(backend_copy._get_defaults(), backend._get_defaults())
Expand Down

0 comments on commit 4393cb9

Please sign in to comment.