Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mtreinish committed May 26, 2023
1 parent 36115ee commit 4f36589
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/python/transpiler/test_passmanager_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,14 +79,14 @@ def test_from_backendv1_inst_map_is_none(self):
config = PassManagerConfig.from_backend(backend)
self.assertIsInstance(config, PassManagerConfig)
self.assertIsNone(config.inst_map)
self.assertIsNone(config.coupling_map)

def test_simulator_backend_v1(self):
"""Test that from_backend() works with backendv1 simulator."""
backend = QasmSimulatorPy()
config = PassManagerConfig.from_backend(backend)
self.assertIsInstance(config, PassManagerConfig)
self.assertIsNone(config.inst_map)
self.assertIsNone(config.coupling_map)

def test_invalid_user_option(self):
"""Test from_backend() with an invalid user option."""
Expand All @@ -104,7 +104,7 @@ def test_str(self):
initial_layout: None
basis_gates: ['id', 'rz', 'sx', 'x']
inst_map: None
coupling_map:
coupling_map: None
layout_method: None
routing_method: None
translation_method: None
Expand Down

0 comments on commit 4f36589

Please sign in to comment.