Skip to content

Commit

Permalink
Remove test_session_no_backend (#1272)
Browse files Browse the repository at this point in the history
  • Loading branch information
kt474 authored Dec 10, 2023
1 parent 517694a commit 4d06ac3
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions test/integration/test_session.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,19 +101,6 @@ def test_session_from_id(self, service):
job = sampler.run(ReferenceCircuits.bell(), shots=400)
self.assertEqual(session_id, job.session_id)

@run_integration_test
def test_session_no_backend(self, service):
"""Test session without passing in backend."""
if self.dependencies.channel == "ibm_quantum":
self.skipTest("Not supported on ibm_quantum")
with Session(service) as session:
sampler = Sampler(session=session)
job1 = sampler.run(ReferenceCircuits.bell(), shots=400)
job2 = sampler.run(ReferenceCircuits.bell(), shots=400)
self.assertTrue(job1.backend())
self.assertTrue(job2.backend())
self.assertEqual(job1.backend().name, job2.backend().name)


class TestBackendRunInSession(IBMIntegrationTestCase):
"""Integration tests for Backend.run in Session."""
Expand Down

0 comments on commit 4d06ac3

Please sign in to comment.